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

Issue with using as.numeric with group field in simdat data frame. #48

Open
edwardody opened this issue Jan 7, 2021 · 0 comments
Open

Comments

@edwardody
Copy link

I'm new to github so I hope this is an appropriate issue to raise.

Running the code in lines 129-138 in raincloud_tutorial_r.Rmd produced the following error:

NAs introduced by coercion
Removed 500 rows containing missing values (stat_boxplot).

The resulting figure does not include the boxplot.

The issue appears to be that the contents of simdat$group cannot be converted to numeric class using as.numeric. Instead the character vectors are converted to NA. I changed the contents of simdat$group from "Group1" and "Group2" to "1" and "2" in my own copy of the script and the code now runs.

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

1 participant