Learn R Programming

datapackage (version 0.2.0)

PropertiesFielddescriptor: Getting and setting properties of Data Resources

Description

Getting and setting properties of Data Resources

Usage

# S3 method for fielddescriptor
dp_name(x)

# S3 method for fielddescriptor dp_title(x)

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

# S3 method for fielddescriptor dp_format(x, ...)

dp_type(x)

dp_type(x) <- value

# S3 method for fielddescriptor dp_type(x)

Value

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

Arguments

x

a fielddescriptor object.

value

the new value of the property.

...

used to pass additional arguments to other methods.

See Also

See PropertiesDatapackage and PropertiesDataresource for methods for Data Packages and Data Resources 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'