Set or get the property name

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

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)