Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter by name of variable and not just order #6

Open
econandrew opened this issue Feb 7, 2018 · 0 comments
Open

Filter by name of variable and not just order #6

econandrew opened this issue Feb 7, 2018 · 0 comments

Comments

@econandrew
Copy link

econandrew commented Feb 7, 2018

I might be misunderstanding, but it looks like the order of filters are applied to the variables in strict order, so (from the vignette):

df <- get_dataset(dataset = "DUR_D", filter = list(c("DEU", "FRA"), "MW", "2024"))

works, but if I only want to apply the last filter I have to write

df <- get_dataset(dataset = "DUR_D", filter = list(NULL, NULL, "2024"))

What would be nice is to use the names() of the filter list to avoid having to type this, e.g.

df <- get_dataset(dataset = "DUR_D", filter = list(AGE = "2024"))

It doesn't seem like this would be too hard, I guess it would require a call to get_data_structure() to get the order right.

You could even match arguments in ... so that a call could look like:

df <- get_dataset(dataset = "DUR_D", AGE = "2024")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant