grapes-at-grapes: Combine stats and site list to overlay plot

%at%R Documentation

Combine stats and site list to overlay plot

Description

combines the stats (from individual station evaluation) and site list in a SpatVector using row.names

Usage

stat %at% site

Arguments

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)

Value

SpatVector (terra package)

Examples


sites<- readRDS(paste0(system.file("extdata",package="eva3dm"),"/sites_AQ_BR.Rds"))
model<- readRDS(paste0(system.file("extdata",package="eva3dm"),"/model.Rds"))
obs  <- readRDS(paste0(system.file("extdata",package="eva3dm"),"/obs.Rds"))

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)

print(stats)

geo_stats <- stats %at% sites

print(geo_stats)


eva3dm documentation built on April 4, 2025, 5:11 a.m.