mark-andrews / psyntur

Tools to help teach data analysis using R to NTU Psychology students
Other
5 stars 2 forks source link

Multiple `by` variables in `shapiro_test` #17

Open mark-andrews opened 3 years ago

mark-andrews commented 3 years ago

This works

selfesteem2 <- read_csv('http://data.ntupsychology.net/selfesteem2.csv')
shapiro_test(y = score, by = time, data = selfesteem2)

And this works

shapiro_test(y = score, by = treatment, data = selfesteem2)

But this does not work

shapiro_test(y = score, by = c(time, treatment), data = selfesteem2)

That last bit needs fixing.