export_pdfs: Export the pdfs fitted for the different taxa.

View source: R/export_pdfs.R

export_pdfsR Documentation

Export the pdfs fitted for the different taxa.

Description

Export the pdfs fitted for the different taxa.

Usage

export_pdfs(
  x,
  dataname = x$misc$site_info$site_name,
  climate = x$parameters$climate,
  taxa = x$inputs$taxa.name,
  loc = getwd(),
  as.csv = FALSE
)

Arguments

x

The name, age or depth of the rows of df (the samples).

dataname

The name of the site (default: x$misc$site_info$site_name)

climate

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

taxa

The names of the taxa of interest. All the pdfs are saved by default.

loc

The path where to export the data (default: working directory)

as.csv

Boolean to indicate if the data should be exported as csv (TRUE) or xlsx (FALSE, default)

Value

No return value, function called to export the PDFs as files.

Examples

## Not run: 
  data(crest_ex)
  data(crest_ex_pse)
  data(crest_ex_selection)
  reconstr <- crest(
    df = crest_ex, pse = crest_ex_pse, taxaType = 0,
    site_info = c(7.5, 7.5),
    climate = c("bio1", "bio12"), bin_width = c(2, 20),
    shape = c("normal", "lognormal"),
    selectedTaxa = crest_ex_selection, dbname = "crest_example",
    leave_one_out = TRUE
  )
  #> Replace 'tempdir()' by the location where the sample should be saved (e.g. 'getwd()')
  export_pdfs(reconstr,
              dataname='crest_example',
              loc=tempdir()
  )

## End(Not run)


crestr documentation built on Jan. 6, 2023, 5:23 p.m.