latlon | R Documentation |
Get latitude and longitude.
latlon(data, coord = "BR-AQ", proj = "+proj=longlat", verbose = T)
data |
data.frame with row.names of correscponding locations |
coord |
data.frame or 'BR-AQ','BR-METAR','BR-INMET' containing lat, lon and row.names of each location |
proj |
projection string to CRS / proj4string (sp package), defoult in "+proj=longlat" |
verbose |
to display additional information |
sample <- read.stat(paste0(system.file("extdata", package = "hackWRF"),
"/sample.csv"),verbose=TRUE)
row.names(sample) <- c("Americana","Campinas","Congonhas")
stations <- readRDS(paste0(system.file("extdata",package="hackWRF"),"/stations.Rds"))
coord <- latlon(sample, coord = stations)
print(coord)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.