Description Usage Arguments Value Examples
View source: R/agnitio.R View source: R/pull.R
Pulls data from the Emsi Episteme API according to specified parameters and returns a prepared data frame for analysis.
1 | datapull(country, content, release, constraints, metrics)
|
country |
The two-character country code. |
content |
The Emsi Episteme dataset description (e.g. "Occupation"). |
release |
The release or version identifier for the dataset (e.g. "2016.1"). |
constraints |
A list of dimensional constraints relevant to the dataset, each of which has been prepared through
|
metrics |
A set of metrics through which to quantify the data, prepared through |
A data frame of dimensions and metrics, with dimensions classified as factors and metrics as doubles.
1 2 3 4 5 6 | met1 <- data.frame(names=c("Jobs.2016","Jobs.2022"), as=c("Jobs.2016","Jobs.2022"))
met1 <- metricmaker(met1)
area1 <- data.frame(name=c("Great Britain", "Wales"), code=c("GB", "WAL"))
areadim <- dimmaker("Area", area1)
occdim <- dimmaker("Occupation", "asIdentity")
datapull("UK","Occupation","2016.1",list(CoW("A"),areadim,occsdim),met1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.