I have a cvs file and want to run a randomised trial on it and generate a plot, but when running i've been getting an error in the group_by, see below. How do I fix this?
Looks like there’s an error in the second line -
readr::read_csv is not doing anything. I think it should be -
readr::read_csv(“name of csv file”)
You may have to include the path as well.
In addition to what @Pathmes has added, the summarise function may be getting confused where your newly created column names are the same as built-in function names.
Once you get the data read in correctly, I would try something like: