-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error: Variable in 'formula' must be numeric. #75
Comments
Dave, Thanks for the note. Is there any possibility that your "Length" variable is actually "Length " (with the extra space on the end). Your results from If not, I don't see the issue immediately. Is it possible for you to send me your data file so that I can try repeating the issue and then troubleshooting from there. You can send it directly to derek@derekogle.com. Thanks. |
That didn't seem to be the issue. I did find, however, that if I explicitly define df as a data frame I have no issues. I assumed I was working with a data frame, but it turns out when I import my data from a CSV file the data is coming in as class = tbl_df.
|
That was my second guess as I have had problems with other functions relative to the data being a tibble (the Thanks for letting me know and thanks for your patience. |
Easy enough to be more explicit in my programming. Thank you! |
More and more people are using methods to read data that result in |
I'm having an issue with certain functions that require a "formula" such as psdCalc and psdPlot. Length is not being recognized as numeric. I simplified my data frame to just one species and associated lengths (nearest mm) to demonstrate the issue. I'm able to run the simulated yellow perch data from examples in the help files just fine. Love the FSA package and book, btw.
Thanks in advance for any help!
Dave
The text was updated successfully, but these errors were encountered: