setData: Set value of slot 'Data'

Description Usage Arguments Value Examples

Description

setData assigns a data.table to the slot Data of the input object.

Usage

1
2
3
4
5
6
7
setData(object) <- value

## S4 replacement method for signature 'StQ,data.table'
setData(object) <- value

## S4 replacement method for signature 'rawStQ,data.table'
setData(object) <- value

Arguments

object

Object whose slot Data is to be assigned.

value

data.table to be assigned to the slot Data.

Value

Object with slot Data updated.

Examples

1
2
3
4
5
6
7
8
9
# We build an empty data.table:
library(data.table)
Data <- data.table(IDDD = character(0), Value = numeric(0))

# We assign this data.table to the slot Data of object NewExampleStQ:
data(ExampleStQ)
NewExampleStQ <- ExampleStQ
setData(NewExampleStQ) <- Data
NewExampleStQ

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