Learn R Programming

datapackage (version 0.2.0)

dp_resource: Modifying the resources of a Data Package

Description

Modifying the resources of a Data Package

Usage

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

Value

Either returns a Data Resource object or modifies the Data Package.

Arguments

x

a datapackage object.

resource_name

the name of a resource.

value

a dataresource object.

Details

When a resource with the name already exists this resource is overwritten. Therefore, the assignment operator can also be used to modify existing resources.