dpschema: Get and set the schema of a data set or columns in the data...

View source: R/properties_tabulardataresource.R

schemaR Documentation

Get and set the schema of a data set or columns in the data set

Description

Get and set the schema of a data set or columns in the data set

Usage

schema(x, attribute, ...)

## Default S3 method:
schema(x, attribute, ...)

schema(x, attribute) <- value

## Default S3 replacement method:
schema(x, attribute) <- value

Arguments

x

the data.frame or vector for which the schema should be set or obtained.

attribute

the optional name of the specific attribute to get or set. When omitted the complete schema is set or obtained.

...

passed on to other methods.

value

the value to set the schema or attribute with.

Details

The schema is stored in the schema attribute of the object. When the object does not have a schema associated with it, a default schema appropiate for the object is generated.


djvanderlaan/datapackage documentation built on March 18, 2024, 4:57 p.m.