idf_sepdim: Convert a List of Dimensions to Simpler Values

View source: R/simplify_utilities.R

idf_sepdimR Documentation

Convert a List of Dimensions to Simpler Values

Description

This function breaks down a list of dimensions (e.g. dimensionLength, dimensionWidth, etc.) from a single resource (element) of an idaifield_docs or idaifield_resources object and converts them to simple values.It is used as a helper function for simplify_idaifield().

Usage

idf_sepdim(dimensionList, name = NULL)

Arguments

dimensionList

A list of dimensions (e.g. dimensionLength, dimensionWidth, etc.) from a single resource (element) of an idaifield_docs or idaifield_resources object.

name

character. The name of the corresponding dimension list. Defaults to "dimension".

Value

A list containing simple values for each measured dimension from the list. If a range was entered, the function returns the mean without further comment.

See Also

  • This function is used by: simplify_idaifield()

Examples

## Not run: 
dimensionLength_new <- idf_sepdim(idaifield_resources[[1]]$dimensionLength, "dimensionLength")

## End(Not run)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.