class_schema_extractors: Schema: extract parts of a Schema object

Description Usage Arguments Value See Also

Description

Usual operators to subset and manipulate 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
20
## S4 method for signature 'Schema,missing,missing,missing'
x[i]

## S4 method for signature 'Schema,logical,missing,missing'
x[i]

## S4 method for signature 'Schema,numeric,missing,missing'
x[i]

## S4 method for signature 'Schema,character,missing,missing'
x[i]

## S4 method for signature 'Schema,numeric,missing'
x[[i]]

## S4 method for signature 'Schema,character,missing'
x[[i]]

## S4 method for signature 'Schema'
x$name

Arguments

x

an object of class Schema.

i

indices specifying tags to extract. Indices can be logical, numeric or character vectors. If missing, x is returned. Numeric values are coerced to integer by as.integer() (and hence truncated towards zero). Character vectors will be matched partially to tags and can be abbreviated. If i is longer than x, the non-relevent components of i are ignored.

name

a name.

Value

Exractors are all endomorphism: they return an object (possibly empty) of class Schema in all cases. An exception is made for operator $ which returns NULL if name is not found. This is for consistency with other list-like objects.

See Also

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


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