as.defol: Alias to 'as_defol()'

View source: R/utils.R

as.defolR Documentation

Alias to as_defol()

Description

Alias to as_defol()

Usage

as.defol(x)

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

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 Aug. 10, 2023, 1:08 a.m.