Description Usage Arguments Value Examples
View source: R/agnitio.R View source: R/metrics.R
Takes a data frame of required metrics and necessary supporting criteria and specifies them ready for an Emsi Episteme data pull.
1 | metricmaker(metricdf, geoparent, along)
|
metricdf |
at minimum, a data frame with two columns: |
geoparent |
is required for derivative metrics, and is a geographical code identifing the parent geographical unit for analysis. |
along |
is required for derivative metrics, and reflects the intended domain for analysis (e.g. "Industry" or "Occupation"). |
A prepared data frame which will be ready for inclusion in a data pull query.
1 2 3 4 | met1 <- data.frame(names=c("Jobs.2016","Jobs.2022"), as=c("Jobs.2016","Jobs.2022"))
metricmaker(met1)
met2 <- data.frame(name=c("Jobs.2016","Jobs.2016","Jobs.2016"),as=c("Jobs16","LQ16","SS16"),metrics=c(NA,"LQ","SS"),base=c(NA,NA,"Jobs.2003"))
metricmaker(met2, "GB", "Occupation")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.