class_container_accessors: Container: get or set slots

Description Usage Arguments Value See Also

Description

Get or set the values stored in slots of an object of class Container.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
table(x)

schema(x)

table(x) <- value

schema(x) <- value

## S4 method for signature 'Container'
table(x)

## S4 method for signature 'Container'
schema(x)

## S4 replacement method for signature 'Container'
table(x) <- value

## S4 replacement method for signature 'Container'
schema(x) <- value

Arguments

x

conceptually, any R object.

value

depends of the function used.

  • For table<-(), a data.table.

  • For schema<-(), a Schema object. Beware of mismatches bewteen slots table abd schema.

Value

table() returns a data.table.

schema() returns a Schema object.

Functions table<-() and schema<-() update x and return its updated version invisibly.

See Also

Other Container: Container-class, Container-extractors, Container-methods, Container-validators, is_container()


jeanmathieupotvin/cargo documentation built on Oct. 27, 2020, 5:22 p.m.