import_Wdata: Imports data regarding occurrence of wood from files under...

View source: R/import_Wdata.R

import_WdataR Documentation

Imports data regarding occurrence of wood from files under path (path>1 directory=1 event>all logs of the event)

Description

Imports data regarding occurrence of wood from files under path (path>1 directory=1 event>all logs of the event)

Usage

import_Wdata(path, site = path, min_length = NA, sample_length = FALSE)

Arguments

path

the path towards the events directory

site

the name of the site considered

min_length

the minimum length for a wood piece to be included in the dataset. Defaults to NA (no filtering).

sample_length

whether to sample the wood pieces with no length provided, according to the proportion of pieces with Length>min_length. Defaults to FALSE.

Value

Wdata

Examples

Wdata=import_Wdata("data-raw/wood_data_Ain", site="Ain")
Wdata=import_Wdata("data-raw/wood_data_Allier", site="Allier", min_length=1, sample_length=TRUE)

lvaudor/woody documentation built on March 22, 2022, 9:53 a.m.