Learn R Programming

datapackage (version 0.2.1)

dp_get_connection: 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, ...)

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.

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.