-id1, -id2 work, id1:id2 does not (yet)pull/10/head
| # ids <- "" | # ids <- "" | ||||
| # what happens if ids := -year or ids := x:y | # what happens if ids := -year or ids := x:y | ||||
| # the case that ... contains two -arguments. i.e., -year, -region | |||||
| ids <- ids[2, ] | |||||
| ids <- ids[!ids %in% c(key, value)] | ids <- ids[!ids %in% c(key, value)] | ||||
| ids <- ids[ids != "-"] | ids <- ids[ids != "-"] | ||||
| key_values <- x %>% pull(key) %>% unique() | key_values <- x %>% pull(key) %>% unique() | ||||
| type_dict <- c(rep("id", length(ids)), rep("key", length(key)), rep("value", length(value))) | type_dict <- c(rep("id", length(ids)), rep("key", length(key)), rep("value", length(value))) | ||||
| names(type_dict) <- c(rep(ids, length(ids)), rep(key, length(key)), rep(value, length(value))) | |||||
| names(type_dict) <- c(ids, key, value) | |||||
| x_dict <- 1:nc | x_dict <- 1:nc | ||||
| names(x_dict) <- xn | names(x_dict) <- xn |