dpproperty: Get and set properties of Data Packages and Data Resources

View source: R/dpproperty.R

dppropertyR Documentation

Get and set properties of Data Packages and Data Resources

Description

Get and set properties of Data Packages and Data Resources

Usage

dpproperty(x, attribute)

## S3 method for class 'readonlydatapackage'
dpproperty(x, attribute)

## S3 method for class 'editabledatapackage'
dpproperty(x, attribute)

dpproperty(x, attribute) <- value

## S3 replacement method for class 'readonlydatapackage'
dpproperty(x, attribute) <- value

## S3 replacement method for class 'editabledatapackage'
dpproperty(x, attribute) <- value

## S3 method for class 'dataresource'
dpproperty(x, attribute)

## S3 replacement method for class 'dataresource'
dpproperty(x, attribute) <- value

## S3 method for class 'tableschema'
dpproperty(x, attribute)

## S3 replacement method for class 'tableschema'
dpproperty(x, attribute) <- value

## S3 method for class 'fielddescriptor'
dpproperty(x, attribute)

## S3 replacement method for class 'fielddescriptor'
dpproperty(x, attribute) <- value

Arguments

x

a datapackage or dataresource object.

attribute

a length 1 character vector with the name of the property.

value

the new value of the property.

Value

Either returns the property or modifies the object.

See Also

See dpname etc. for methods for specific properties for Data Packages and dpencoding etc. for specific properties for Data Resources. These specific methods also check if the input is valid for the given property.


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