dp_resource {datapackage}R Documentation

Modifying the resources of a Data Package

Description

Modifying the resources of a Data Package

Usage

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

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.

Value

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


[Package datapackage version 0.2.3 Index]