dp_get_connection: Get a connection to the data belonging to a Data Resource

View source: R/dp_get_connection.R

dp_get_connectionR Documentation

Get a connection to the data belonging to a Data Resource

Description

Get a connection to the data belonging to a Data Resource

Usage

dp_get_connection(x, ...)

Arguments

x

Can either be a Data Resource or Data Package.

...

Extra arguments are passed on to dp_get_data.

Details

When x is a Data Package a additional argument resource_name is needed to identify the correct Data Resource. See dp_get_data.

This function calls dp_get_data with an additional as_connection = TRUE) argument.

Value

Depending on the type of Data Resource a connection to the data is returned. Some readers will return the data set as a data.frame.


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