MazamaLocationUtils (version 0.1.6)

location_initialize: Create known location record with core metadata

Description

Creates a known location record with the following columns of core metadata:

  • locationID

  • locationName

  • longitude

  • latitude

  • elevation

  • countryCode

  • stateCode

  • county

  • timezone

  • houseNumber

  • street

  • city

  • zip

Usage

location_initialize(longitude = NULL, latitude = NULL,
  stateDataset = "NaturalEarthAdm1", verbose = TRUE)

Arguments

longitude

Single longitude in decimal degrees E, Default: NULL

latitude

Single latitude in decimal degrees N, Default: NULL

stateDataset

Name of spatial dataset to use for determining state

verbose

Logical controlling the generation of progress messages.

Value

Tibble with a single new known location.

Examples

Run this code
# NOT RUN {
# Set up standard directories and spatial data
spatialDataDir <- tempdir() # typically "~/Data/Spatial"
mazama_initialize(spatialDataDir)

# Wenatchee
lon <- -120.325278
lat <- 47.423333
locationRecord <- location_initialize(lon, lat)
# }

Run the code above in your browser using DataLab