dpresource: Modifying the resources of a Data Package

View source: R/dpresource.R

dpresourceR Documentation

Modifying the resources of a Data Package

Description

Modifying the resources of a Data Package

Usage

dpresource(x, resourcename)

## S3 method for class 'datapackage'
dpresource(x, resourcename)

dpresource(x, resourcename) <- value

## S3 replacement method for class 'readonlydatapackage'
dpresource(x, resourcename) <- value

## S3 replacement method for class 'editabledatapackage'
dpresource(x, resourcename) <- value

Arguments

x

a datapackage object.

resourcename

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.


djvanderlaan/datapackage documentation built on March 18, 2024, 4:57 p.m.