as_defol: Cast data frame to list-like 'defol' object

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Cast data frame to list-like defol object

Usage

1

Arguments

x

A data frame or list-like object to cast. Must have named elements for "year", "series", "gsi", "ngsi", and "defol_status".

Value

x cast to a defol object

Examples

1
2
3
4
5
data(dmj_defol)
example_data <- as.data.frame(dmj_defol)
is.defol(example_data)
back_to_defol <- as_defol(example_data)
is.defol(back_to_defol)

dfoliatR documentation built on Sept. 2, 2020, 5:07 p.m.