Export single variables from SummarisedBirds objects
exportBirds(x, dimension, timeRes, variable, method = "sum")
x | a SummarizedBirds-object |
---|---|
dimension | a character string indicating if the export should be
|
timeRes | A character string indicating what temporal resolution should
be used. For Spatial export the function accepts |
variable | a character string indicating which variable should be
exported, |
method | Only applicable to |
an xts time series (if dimension = "temporal"), a named vector (if dimension = "temporal" and timeRes = "month"), or a sf (if dimension = "spatial")
the difference between timeRes = "monthly"
and timeRes = "month"
is that the former returns "n.years x 12" values, while month summarize over
years and returns only 12 values aplying the method among years.
For more details over the possible combinations of dimensions and variables
please refer to the vignette "Technical details".
# \donttest{ grid <- makeGrid(searchPolygon, gridSize = 10) SB <- summariseBirds(organizeBirds(bombusObsShort), grid=grid) EB <- exportBirds(SB, "spatial", "month", "nDays", "median") # }