remove_resource {frictionless}R Documentation

Remove a Data Resource

Description

Removes a Data Resource from a Data Package, i.e. it removes one of the described resources.

Usage

remove_resource(package, resource_name)

Arguments

package

Data Package object, created with read_package() or create_package().

resource_name

Name of the Data Resource.

Value

Provided package with one fewer resource.

See Also

Other edit functions: add_resource(), get_schema()

Examples

# Load the example Data Package
package <- example_package

# List resources
resources(package)

# Remove the resource "observations"
package <- remove_resource(package, "observations")

# List resources ("observations" removed)
resources(package)

[Package frictionless version 1.1.0 Index]