rmmCheckEmpty: Check an rmm object for empty fields

View source: R/check.R

rmmCheckEmptyR Documentation

Check an rmm object for empty fields

Description

Identify empty fields in an rmm object and classify these into obligate and optional fields.

Usage

rmmCheckEmpty(rmm, family = c("base"))

Arguments

rmm

a range model metadata list

family

an rmm family, "base" by default

Details

See Examples.

Value

A dataframe containing empty fields labeled as obligate, optional, or suggested.

Author(s)

Cory Merow <cory.merow@gmail.com>, Brian Maitner <bmaitner@gmail.com>,

See Also

Other check: rmmCheckFinalize(), rmmCheckMissingNames(), rmmCheckName(), rmmCheckValue(), rmmCleanNULLs()

Examples

#First, make an empty rmm object:
rmm <- rmmTemplate()
#Next, we check for emtpy fields:
empties1 <- rmmCheckEmpty(rmm = rmm)
#If looks like there are quite a few empty obligate fields.  Let's populate a few:
rmm$data$occurrence$taxon <- "Acer rubrum"
rmm$data$environment$variableNames <- "Bio1"
#Now, if we run rmmCheckEmpty again, we see there are 2 fewer empty, obligate fields
empties2 <- rmmCheckEmpty(rmm = rmm)



cmerow/rangeModelMetadata documentation built on Oct. 22, 2023, 1:35 a.m.