Description Usage Arguments Value Examples
setData
assigns a data.table to the slot Data
of the
input object.
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
|
object |
Object whose slot |
value |
data.table to be assigned to the slot |
Object with slot Data updated.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.