dp_load_from_datapackage: Quickly read a dataset from a Data Package

View source: R/dp_load_from_datapackage.R

dp_load_from_datapackageR Documentation

Quickly read a dataset from a Data Package

Description

Quickly read a dataset from a Data Package

Usage

dp_load_from_datapackage(path, resource_name, ...)

Arguments

path

the directory with the Data Package

resource_name

the name of the Data Resource. When omitted the Data Resource with the same name as the Data Package is read in and when no such resource exists the first Data Resource is read in.

...

passed on to dp_get_data.

Details

This function is a wrapper around open_datapackage and dp_get_data. It offers a quick way to read in a dataset from a Data Package.

Value

Returns a dataset. Usually a data.frame.


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