dp_resource: Modifying the resources of a Data Package

View source: R/dp_resource.R

dp_resourceR 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.


djvanderlaan/datapackage documentation built on June 12, 2025, 2:44 a.m.