latlon: Get latitude and longitude.

View source: R/latlon.R

latlonR Documentation

Get latitude and longitude.

Description

Get latitude and longitude.

Usage

latlon(data, coord = "BR-AQ", proj = "+proj=longlat", verbose = T)

Arguments

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

Examples

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)


Schuch666/hackWRF documentation built on June 9, 2025, 1:46 p.m.