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

sugestion: goFlux without gastype #1

Closed
Schuch666 opened this issue Mar 8, 2024 · 2 comments
Closed

sugestion: goFlux without gastype #1

Schuch666 opened this issue Mar 8, 2024 · 2 comments

Comments

@Schuch666
Copy link

In the goFlux function, if the function is called without an argument gastype (but with a dataframe), can be included a menu to choose the variable from the data.frame or a print message with the variable names that can be used?

@Qepanna
Copy link
Owner

Qepanna commented Mar 15, 2024

In the goFlux function, if the function is called without an argument gastype (but with a dataframe), can be included a menu to choose the variable from the data.frame or a print message with the variable names that can be used?

@Schuch666 I changed the error message for goFlux if gastype = NULL. Now, if no argument is provided to gastype, an error message is returned:

Error in goFlux(LGR_manID, gastype = NULL) : 
  'gastype' must be one of the following: 'CO2dry_ppm', 'CH4dry_ppb', 'COdry_ppb', 'N2Odry_ppb', 'NH3dry_ppb' or 'H2O_ppm'

@Schuch666
Copy link
Author

This error is more informative

An suggestion for the future is to inform the available variables (if the right columns are present on the input data.frame and if contains any data)

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

2 participants