View source: R/read_forresdat_table.R
read_forresdat_table | R Documentation |
forresdat
This function reads a table in .csv
format from git repository forresdat
(and saves the forresdat
data to a local temp directory to avoid unneeded
downloading in the future).
Data available in forresdat
only contains observations, so no records with
zero values are added for for instance species that were not observed and
hence absent.
These zero value records can easily be added by using the function
add_zeros()
.
To load table plotinfo
, set argument join_plotinfo = FALSE
.
read_forresdat_table(
tablename,
join_plotinfo = TRUE,
plottype = c("CP", "CA", "all")
)
tablename |
name of the table that should be read |
join_plotinfo |
should table |
plottype |
Data of which |
A dataframe with the specified table, default columns plottype
,
forest_reserve
, survey_dendro
/deadw
/reg
/veg
(TRUE or FALSE) and
data_processed
(TRUE or FALSE).
To be able to recall the version of the data, this dataframe contains
an attribute with the version number of the release of forresdat
from which
the data are taken.
library(forrescalc)
data_dendro <- read_forresdat_table(tablename = "dendro_by_plot")
data_dendro
attr(data_dendro, "forresdat")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.