sol_set_property: Set or get the property name

View source: R/properties.R

sol_set_propertyR Documentation

Set or get the property name

Description

Set or get the property name

Usage

sol_set_property(x, prop, with_units, ...)

sol_get_property(x)

Arguments

x

vector: data

prop

string: property name

with_units

string: units of measurement to use. If missing, the default units for the property will be used

...

: extra arguments, currently ignored

Value

x with additional class set

See Also

sol_properties

Examples

x <- data.frame(LRL=c(11.3,13.9),species=c("Architeuthis dux"),
  stringsAsFactors=FALSE)
## it doesn't matter what the column names are, but we
## need to set the property types correctly
x$LRL <- sol_set_property(x$LRL,"lower rostral length")

## remove the property
x$LRL <- sol_set_property(x$LRL,NULL)


SCAR/solong documentation built on Aug. 5, 2022, 9:04 p.m.