Modifying the resources of a Data Package
dp_resource(x, resource_name)# S3 method for datapackage
dp_resource(x, resource_name)
dp_resource(x, resource_name) <- value
# S3 method for readonlydatapackage
dp_resource(x, resource_name) <- value
# S3 method for editabledatapackage
dp_resource(x, resource_name) <- value
Either returns a Data Resource object or modifies the Data Package.
a datapackage
object.
the name of a resource.
a dataresource
object.
When a resource with the name already exists this resource is overwritten. Therefore, the assignment operator can also be used to modify existing resources.