Description Usage Arguments Value Examples
setUnits
returns the input object with slot Data
restricted to the
specified units.
1 2 3 4 5 6 7 | setUnits(object) <- value
## S4 replacement method for signature 'StQ,data.table'
setUnits(object) <- value
## S4 replacement method for signature 'StQList,data.table'
setUnits(object) <- value
|
object |
Object whose slot |
value |
data.table with the values of the unit qualifiers identifying the restricted units. |
Object with the same class as the input object with slot Data restricted to the specified units.
1 2 3 4 5 | data(ExampleStQ)
NewExampleStQ <- ExampleStQ
Units <- data.table::data.table(ID = stringr::str_pad(1:5, 5, 'left', '0'))
setUnits(NewExampleStQ) <- Units
NewExampleStQ
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.