class_schema_as: Schema: coerce objects to class Schema

Description Usage Arguments Value See Also

Description

Coerce objects to class Schema. This is useful to generate objects of class Schema from other objects in a fast and convenient way.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
as_schema(x, ...)

## S4 method for signature 'Schema'
as_schema(x, ...)

## S4 method for signature 'data.table'
as_schema(x, ...)

## S4 method for signature 'data.frame'
as_schema(x, ...)

## S4 method for signature 'list'
as_schema(x, ...)

Arguments

x

conceptually, any R object.

...

additional arguments to be passed to or from methods. Unused.

Value

An object of class Schema.

See Also

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


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