setUnits: Return the input object with slot 'Data' restricted to the...

Description Usage Arguments Value Examples

Description

setUnits returns the input object with slot Data restricted to the specified units.

Usage

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

Arguments

object

Object whose slot Data is to be restricted.

value

data.table with the values of the unit qualifiers identifying the restricted units.

Value

Object with the same class as the input object with slot Data restricted to the specified units.

Examples

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

david-salgado/StQ documentation built on Aug. 12, 2021, 3:23 p.m.