Closed tbates closed 3 years ago
try GitHub version now
IMO "undefined columns selected" sucks as an error message. R should do better. It knows WHICH variable(s) are not found, but does it tell you which ones (out of possibly thousands of possibilities)? No. Bad programmer, go back to school, do not collect $200.
done
Just as a codicil to this issue, most umx functions use umx_check_names
, allowing:
umx_check_names(c("mpg", "meaning of life"), mtcars)
Error in umx_check_names(c("mpg", "meaning of life"), mtcars) : Not all required names were found in the data. Missing were: meaning of life
Maybe add 'age' as an argument, or give user a warning that age is missing?
The function looks for "age" or "age[separator]1" columns in the dataset
produces the following: