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
Thanks for all the work on this very useful package!
I just wanted to make a small suggestion with regards to the warning message thrown during the set_attribute() unit checks, in particular, when the value is missing (NA). I appreciate that one reason a value being NA is because of omission. But I suspect another common reason, which was indeed my case, was that the variable is dimensionless. I assumed initially (admittedly without checking the function manual, that leaving it as NA was most appropriate but that correctly threw a warning:
#> Warning in set_attribute(attributes[i, ], factors = factors, missingValues
#> = missingValues): Unit 'NA' is not a recognized standard unit; treating
#> as custom unit. Please be sure you also define a custom unit in your EML
#> record, or replace with a recognized standard unit. See set_unitList() for
#> details.
After checking the manual, I only found that the field was required but no further guidance on the case where the variable has no units. Eventually I did find the dimensionless entry in the formal EML docs, but it took a little while.
So I did find my solution eventually, so it is fine to ignore this suggestion. But I think a message just mentioning dimensionless units, either in the docs or when the unrecognised unit is NA might both save folks some time + help educate!
The text was updated successfully, but these errors were encountered:
Hi!
Thanks for all the work on this very useful package!
I just wanted to make a small suggestion with regards to the warning message thrown during the
set_attribute()
unit checks, in particular, when the value is missing (NA
). I appreciate that one reason a value beingNA
is because of omission. But I suspect another common reason, which was indeed my case, was that the variable is dimensionless. I assumed initially (admittedly without checking the function manual, that leaving it as NA was most appropriate but that correctly threw a warning:After checking the manual, I only found that the field was required but no further guidance on the case where the variable has no units. Eventually I did find the
dimensionless
entry in the formal EML docs, but it took a little while.So I did find my solution eventually, so it is fine to ignore this suggestion. But I think a message just mentioning
dimensionless
units, either in the docs or when the unrecognised unit isNA
might both save folks some time + help educate!The text was updated successfully, but these errors were encountered: