%at% | R Documentation |
combines the stats (from individual station evaluation) and site list in a SpatVector using row.names
stat %at% site
stat |
data.frame with stats or other variable (containing row.names and other variables) |
site |
data.frame with site list (containing row.names, lat and lon) |
SpatVector (terra package)
sites <- data.frame(lat = c(-22.72500,-23.64300,-20.34350),
lon = c(-47.34800,-46.49200,-40.31800),
row.names = c('Americana','SAndre','VVIbes'),
stringsAsFactors = F)
model<- readRDS(paste0(system.file("extdata",package="eva3dm"),"/model.Rds"))
obs <- readRDS(paste0(system.file("extdata",package="eva3dm"),"/obs.Rds"))
# evaluation by station
stats <- eva(mo = model, ob = obs, site = "Americana")
stats <- eva(mo = model, ob = obs, site = "SAndre",table = stats)
stats <- eva(mo = model, ob = obs, site = "VVIbes",table = stats)
# evaluation using all stations
stats <- eva(mo = model, ob = obs, site = "ALL", table = stats)
print(stats)
geo_stats <- stats %at% sites
print(geo_stats)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.