Learn R Programming

dfoliatR (version 0.3.0)

as.obr: Alias to as_obr()

Description

Alias to as_obr()

Usage

as.obr(x)

Value

x cast to an obr object

Arguments

x

A data frame or list-like object to cast. Must have named elements for "year", "samp_depth", "num_defol", "perc_defol", "num_max_defol", "perc_max_defol", "mean_gsi", "mean_ngsi", "outbreak_status".

Examples

Run this code
data(dmj_obr)
example_data <- as.data.frame(dmj_obr)
is.obr(example_data)
back_to_obr <- as_obr(example_data)
is.obr(back_to_obr)

Run the code above in your browser using DataLab