Copy crest data to the clipboard for an easy extraction of the data from the R environment.

copy_crest(
x,
climate = x$parameters$climate,
optima = TRUE,
mean = FALSE,
uncertainties = FALSE
)

## Arguments

x

A crestObj produced by the crest.reconstruct or crest functions.

climate

A vector of the climate variables to extract. See accClimateVariables for the list of accepted values.

optima

A boolean value to indicate if the optima should be copied to the clipboard.

mean

A boolean value to indicate if the means should be copied to the clipboard.

uncertainties

A boolean value to indicate if the uncertainties should be copied to the clipboard.

## Value

No return value. This function is called to copy the crest data to the clipboard.

## Examples

if (FALSE) {
if(requireNamespace('clipr', quietly=TRUE)) {
reconstr <- crest(
df = crest_ex, pse = crest_ex_pse, taxaType = 0,
climate = c("bio1", "bio12"), bin_width = c(2, 20),
shape = c("normal", "lognormal"),
selectedTaxa = crest_ex_selection, dbname = "crest_example",
leave_one_out = TRUE
)
copy_crest(reconstr, uncertainties=TRUE)
## You can now paste the values in a spreadsheet.
}
}