This function reads the data package from git repository forresdat (and saves the forresdat data to a local temp directory to avoid unneeded downloading in the future). This data package contains both data and metadata and can be explored using functions of the frictionless package.

Data available in forresdat only contain 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().

The different tables of this dataset contain data that are collected using 2 different methods (plot types): circular plots (CP) and core areas (CA). It is advised to only use one of them for analyses, as the data are likely to differ due to method related differences.

General information on the plot level is available in table plotinfo, which can easily be joined to other tables on plot_id and period (or only plot_id if period is absent).

read_forresdat()

Value

A frictionless data package with all tables and metadata from GitHub repository forresdat, which can be explored using package frictionless. To be able to recall the version of the data, this data package contains an attribute with the version number of the release of forresdat from which the data are taken.

Examples

library(forrescalc)
datapackage <- read_forresdat()
#> Warning: Tables contain data of 2 different methods (plottypes, CP and CA): select only one of them to do reliable analyses
#> Warning: The dataset only contains presence data and lacks zero observations (except for 1 observation per plot_id and period to indicate that observations are done).  Please use function add_zeros() to add zero observations when needed.
frictionless::resources(datapackage)
#>  [1] "deadw_by_decay_plot"                     
#>  [2] "deadw_by_decay_plot_species"             
#>  [3] "dendro_by_diam_plot"                     
#>  [4] "dendro_by_diam_plot_species"             
#>  [5] "dendro_by_plot"                          
#>  [6] "dendro_by_plot_species"                  
#>  [7] "plotinfo"                                
#>  [8] "qalive_dead"                             
#>  [9] "qcover_herbs"                            
#> [10] "qdecaystage"                             
#> [11] "qheight_class_regeneration"              
#> [12] "qnumber_regeneration_classes"            
#> [13] "qspecies"                                
#> [14] "qtotal_cover"                            
#> [15] "qtotalcover"                             
#> [16] "reg_by_core_area_height_species"         
#> [17] "reg_by_core_area_species"                
#> [18] "reg_by_plot"                             
#> [19] "reg_by_plot_height"                      
#> [20] "reg_by_plot_height_species"              
#> [21] "reg_by_plot_species"                     
#> [22] "regeneration_by_core_area_height_species"
#> [23] "regeneration_by_core_area_species"       
#> [24] "regeneration_by_plot"                    
#> [25] "regeneration_by_plot_height"             
#> [26] "regeneration_by_plot_height_species"     
#> [27] "regeneration_by_plot_species"            
#> [28] "veg_by_core_area_species"                
#> [29] "veg_by_plot"                             
#> [30] "vegetation_by_core_area_species"         
#> [31] "vegetation_by_plot"                      
attr(datapackage, "forresdat")
#> [1] "forresdat release v0.0.3"