getIDVars | R Documentation |
This function extracts the identifying variables from a table by applying a schema description to it.
getIDVars(schema = NULL, input = NULL)
schema |
[ |
input |
[ |
a list per cluster with values of the identifying variables
input <- tabs2shift$clusters_nested schema <- setCluster(id = "sublevel", group = "territories", member = c(1, 1, 2), left = 1, top = c(3, 8, 15)) %>% setIDVar(name = "territories", columns = 1, rows = c(2, 14)) %>% setIDVar(name = "sublevel", columns = 1, rows = c(3, 8, 15)) %>% setIDVar(name = "year", columns = 7) %>% setIDVar(name = "commodities", columns = 2) %>% setObsVar(name = "harvested", columns = 5) %>% setObsVar(name = "production", columns = 6) validateSchema(schema = schema, input = input) %>% getIDVars(input = input)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.