View source: R/summary_weather.R
summaryWTH | R Documentation |
Summarize get_weather()
outputs based on environments and defined time intervals (e.g.,phenology)
summaryWTH(
env.data,
id.names = NULL,
env.id = NULL,
days.id = NULL,
var.id = NULL,
statistic = NULL,
probs = NULL,
by.interval = FALSE,
time.window = NULL,
names.window = NULL
)
env.data |
data.frame. A |
id.names |
vector (character). Indicates the name of the columns to be used as id for the environmental variables to be analysed. |
env.id |
character. Name of the columns to be used as identification for environments. |
days.id |
character. Name of the columns indicating the days from start. |
var.id |
character. Indicates which variables will be used in the analysis. |
statistic |
vector (character). Indicates what statistic must be analysed, |
probs |
vector(numeric). Indicates the probability quantiles, as probs = 0,1. If is NULL, |
by.interval |
boolean. Indicates if temporal intervals must be computed within each environment. Default = FALSE. |
time.window |
vector (numeric). If |
names.window |
vector(character). If |
TODO
Germano Costa Neto
## Not run:
### Fetching weather information from NASA-POWER
env.data = get_weather(lat = -13.05, lon = -56.05)
### Basic summary
summaryWTH(env.data)
### Returning only mean values
summaryWTH(env.data, env.id = 'env', statistic = 'mean')
### Summary by time intervals given by time.window and names.window
summaryWTH(env.data, env.id = 'env', by.interval = TRUE,
time.window = c(0, 14, 35, 60, 90, 120),
names.window = c('P-E', 'E-V1', 'V1-V4', 'V4-VT', 'VT-GF', 'GF-PM'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.