get_cube: Download a DataCube

get_cubeR Documentation

Download a DataCube

Description

Returns a data frame with one observation per row and one column per component. Components may be dimensions, measures or attributes.

Usage

get_cube(dataset_uri, endpoint = default_endpoint(), include_geometry = FALSE)

Arguments

dataset_uri

A string

endpoint

A string for the sparql endpoint

include_geometry

A boolean indicating whether the geometries should be downloaded (defaults to FALSE).

Details

Where the column represents an RDF Resource, it will have the type ldf_resource vector.

If the cube uses the sdmx:refArea dimension, it's values will be described using get_geography. The descriptions will be retrieved from the same endpoint.

If the cube users the sdmx:refPeriod dimension, it's values will be described using intervals.

Value

A data frame

Examples

## Not run: 
get_cube("http://gss-data.org.uk/data/gss_data/covid-19/ons-online-price-changes-for-high-demand-products#dataset")

## End(Not run)

Swirrl/linked-data-frames documentation built on Sept. 14, 2022, 6:15 p.m.