You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Often one is only interested in one vector and then it's not too obvious to type a['var'][[1]] (since [ always returns a table - even if it only returns a single variable). However, a complementary solution could be to make use of [[, e.g. a[['var']].
It should through an error or only select the first variable if multiple variables are asked for. Also, it should only allow for one dimension. Perhaps the easiest way would be to only return the first match y[[1]] in y <- list_to_query_repr(x$variable_match(name = i, dims = j)).
Often one is only interested in one vector and then it's not too obvious to type
a['var'][[1]](since[always returns a table - even if it only returns a single variable). However, a complementary solution could be to make use of[[, e.g.a[['var']].It should through an error or only select the first variable if multiple variables are asked for. Also, it should only allow for one dimension. Perhaps the easiest way would be to only return the first match
y[[1]]iny <- list_to_query_repr(x$variable_match(name = i, dims = j)).