as_unit_string.factor: Coerce Factor to Unit String

Description Usage Arguments Value See Also Examples

View source: R/unit_string.R

Description

Coerces factor to class 'unit_string' by converting to character and calling as_unit_string.

Usage

1
2
## S3 method for class 'factor'
as_unit_string(x, ...)

Arguments

x

factor

...

ignored arguments

Value

unit_string

See Also

Other unit_string: [.unit_string(), [[.unit_string(), as_unit_string.character(), as_unit_string.symbolic_units(), as_unit_string.units(), as_unit_string()

Examples

1
as_unit_string(as.factor('kg m2 s-2'))

yamlet documentation built on July 19, 2021, 1:06 a.m.