class_schema_accessors: Schema: get or set slots

Description Usage Arguments Value See Also

Description

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

Usage

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

prototypes(x)

inputs(x) <- value

prototypes(x) <- value

## S4 method for signature 'Schema'
inputs(x)

## S4 method for signature 'Schema'
prototypes(x)

## S4 replacement method for signature 'Schema'
inputs(x) <- value

## S4 replacement method for signature 'Schema'
prototypes(x) <- value

Arguments

x

conceptually, any R object.

value

depends of the function used.

  • For inputs<-(), a character. It must have names that match existing names in x.

  • For prototypes<-(), a list. It must have names that match existing names in x.

Value

inputs() returns a named character vector.

prototypes() returns a named list.

Functions inputs<-(), prototypes<-() and constructor<-() update x and return its updated version invisibly.

See Also

Other Schema: Schema-class, Schema-coercions, Schema-extractors, Schema-methods, Schema-setops, Schema-validators, is_schema()


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