dp_resource | R Documentation |
Modifying the resources of a Data Package
dp_resource(x, resource_name)
## S3 method for class 'datapackage'
dp_resource(x, resource_name)
dp_resource(x, resource_name) <- value
## S3 replacement method for class 'readonlydatapackage'
dp_resource(x, resource_name) <- value
## S3 replacement method for class 'editabledatapackage'
dp_resource(x, resource_name) <- value
x |
a |
resource_name |
the name of a resource. |
value |
a |
When a resource with the name already exists this resource is overwritten. Therefore, the assignment operator can also be used to modify existing resources.
Either returns a Data Resource object or modifies the Data Package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.