properties_dataresource: Getting and setting properties of Data Resources

dpname.dataresourceR Documentation

Getting and setting properties of Data Resources

Description

Getting and setting properties of Data Resources

Usage

## S3 method for class 'dataresource'
dpname(x)

## S3 replacement method for class 'dataresource'
dpname(x) <- value

## S3 method for class 'dataresource'
dptitle(x)

## S3 replacement method for class 'dataresource'
dptitle(x) <- value

## S3 method for class 'dataresource'
dpdescription(x, ..., firstparagraph = FALSE, dots = FALSE)

## S3 replacement method for class 'dataresource'
dpdescription(x) <- value

dppath(x, ...)

dppath(x) <- value

## S3 method for class 'dataresource'
dppath(x, fullpath = FALSE, ...)

## S3 replacement method for class 'dataresource'
dppath(x) <- value

dpformat(x, ...)

dpformat(x) <- value

## S3 method for class 'dataresource'
dpformat(x, default = FALSE, ...)

## S3 replacement method for class 'dataresource'
dpformat(x) <- value

dpmediatype(x, ...)

dpmediatype(x) <- value

## S3 method for class 'dataresource'
dpmediatype(x, ...)

## S3 replacement method for class 'dataresource'
dpmediatype(x) <- value

dpencoding(x, default = FALSE, ...)

dpencoding(x) <- value

## S3 method for class 'dataresource'
dpencoding(x, default = FALSE, ...)

## S3 replacement method for class 'dataresource'
dpencoding(x) <- value

dpbytes(x, ...)

dpbytes(x) <- value

## S3 method for class 'dataresource'
dpbytes(x, ...)

## S3 replacement method for class 'dataresource'
dpbytes(x) <- value

dphash(x, ...)

dphash(x) <- value

## S3 method for class 'dataresource'
dphash(x, ...)

## S3 replacement method for class 'dataresource'
dphash(x) <- value

dpschema(x)

## S3 method for class 'dataresource'
dpschema(x)

Arguments

x

a dataresource object.

value

the new value of the property.

...

used to pass additional arguments to other methods.

firstparagraph

Only return the first paragraph of the description.

dots

When returning only the first paragraph indicate missing paragraphs with ....

fullpath

Return the full path including the path to the Data Package and not only the path relative to the Data Package. This is only relevant for relative paths.

default

return the default value if the property had a default value and the property is not set.

Value

Either returns the property or modifies the object. If the property of not set NULL is returned (unless default = TRUE).


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