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

Feature Request: Have list_vars return a list of the variables #101

Closed
billdenney opened this issue May 28, 2018 · 2 comments
Closed

Feature Request: Have list_vars return a list of the variables #101

billdenney opened this issue May 28, 2018 · 2 comments

Comments

@billdenney
Copy link
Contributor

Having list_vars return a human-usable list of variables is helpful. But in times when I'm reporting on many models simultaneously, it would help to be able to check the var list to see if something is defined. As an example, I'd like to be able to do something like the following in my code:

if (length(list_vars(my_xpdb)$ipred) == 0) {
  my_xpdb <- set_var_types(my_xpdb, ipred="CONC")
}
@bguiastr
Copy link
Collaborator

related to #124

@bguiastr bguiastr added this to the xpose 0.5 milestone Jan 13, 2019
@billdenney
Copy link
Contributor Author

Whoops, yes they are the same.

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

No branches or pull requests

2 participants