data.table-class

0th

Percentile

S4 Definition for data.table

A data.table can be used in S4 class definitions as either a parent class (inside a contains argument of setClass), or as an element of an S4 slot.

Keywords
classes, methods
See Also

data.table

Aliases
  • class:data.table
  • data.table-class
Examples
## Used in inheritence.
  setClass('SuperDataTable', contains='data.table')
  
  ## Used in a slot
  setClass('Something', representation(x='character', dt='data.table'))
  x <- new("Something", x='check', dt=data.table(a=1:10, b=11:20))
Documentation reproduced from package data.table, version 1.7.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.