Qepanna / goFlux

goFlux: A user-friendly way to calculate GHG fluxes yourself, regardless of user experience
https://qepanna.quarto.pub/goflux/
GNU General Public License v2.0
18 stars 5 forks source link

sugestion: goFlux without gastype #1

Closed Schuch666 closed 5 months ago

Schuch666 commented 6 months ago

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 commented 5 months ago

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 commented 5 months ago

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)