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

View source: R/dp_property.R

dp_propertyR Documentation

Get and set properties of Data Packages and Data Resources

Description

Get and set properties of Data Packages and Data Resources

Usage

dp_property(x, attribute)

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

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

dp_property(x, attribute) <- value

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

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

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

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

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

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

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

## S3 replacement method for class 'fielddescriptor'
dp_property(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 dp_name etc. for methods for specific properties for Data Packages and dp_encoding 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 June 12, 2025, 2:44 a.m.