View source: R/location_slice.R
location_slice | R Documentation |
This function extract local climate for a set of locations at the appropriate times (selecting the closest time slice available for the specific date associated with each location).
location_slice(
x,
time_bp = NULL,
time_ce = NULL,
coords = NULL,
bio_variables,
dataset,
path_to_nc = NULL,
nn_interpol = TRUE,
buffer = FALSE,
directions = 8
)
x |
a data.frame with columns x and y coordinates(see |
time_bp |
used if no |
time_ce |
time in years CE as an alternative to |
coords |
a vector of length two giving the names of the "x" and "y"
coordinates, as found in |
bio_variables |
vector of names of variables to be extracted. |
dataset |
string defining the dataset to use. If set to "custom", then a single nc file is used from "path_to_nc" |
path_to_nc |
the path to the custom nc file containing the palaeoclimate reconstructions. All the variables of interest need to be included in this file. |
nn_interpol |
boolean determining whether nearest neighbour
interpolation is used to estimate climate for cells that lack such
information (i.e. they are under water or ice). By default, interpolation is only
performed from the first ring of nearest neighbours; if climate is not
available, NA will be returned for that location. The number of neighbours
can be changed with the argument |
buffer |
boolean determining whether the variable will be returned
as the mean of a buffer around the focal cell. If set to TRUE, it overrides
|
directions |
character or matrix to indicate the directions in which
cells are considered connected when using |
a data.frame with the climatic variables of interest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.