Learn R Programming

datapackage (version 0.2.1)

PropertiesDatapackage: Getting and setting properties of Data Packages

Description

Getting and setting properties of Data Packages

Usage

dp_contributors(x, ...)

dp_contributors(x) <- value

# S3 method for datapackage dp_contributors(x, ...)

# S3 method for datapackage dp_contributors(x) <- value

dp_name(x)

# S3 method for datapackage dp_name(x)

dp_name(x) <- value

# S3 method for datapackage dp_name(x) <- value

dp_title(x)

# S3 method for datapackage dp_title(x)

dp_title(x) <- value

# S3 method for datapackage dp_title(x) <- value

dp_description(x, ..., first_paragraph = FALSE, dots = FALSE)

# S3 method for datapackage dp_description(x, ..., first_paragraph = FALSE, dots = FALSE)

dp_description(x) <- value

# S3 method for datapackage dp_description(x) <- value

dp_keywords(x, ...)

# S3 method for datapackage dp_keywords(x, ...)

dp_keywords(x) <- value

# S3 method for datapackage dp_keywords(x) <- value

dp_created(x, ...)

# S3 method for datapackage dp_created(x, ...)

dp_created(x) <- value

# S3 method for datapackage dp_created(x) <- value

dp_id(x, ...)

# S3 method for datapackage dp_id(x, ...)

dp_id(x) <- value

# S3 method for datapackage dp_id(x) <- value

Value

Either returns the property or modifies the object.

Arguments

x

a datapackage object.

...

used to pass additional arguments to other methods.

value

the new value of the property.

first_paragraph

Only return the first paragraph of the description.

dots

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

See Also

See dp_resource for methods for getting and setting the resources of a Data Package.

See PropertiesDataresource and PropertiesFielddescriptor for methods for Data Resources and Field Descriptors respectively. Also see dp_property for a generic method for getting and setting properties. These functions can also be used to get and set 'unofficial' properties'