kassambara / rstatix

Pipe-friendly Framework for Basic Statistical Tests in R
https://rpkgs.datanovia.com/rstatix/
440 stars 50 forks source link

my interest variable name is 'value',then Error caused #162

Open zhankuijun opened 1 year ago

zhankuijun commented 1 year ago

I`m a greenhand. When my interest variable name is 'value',then Error caused . Maybe I overlooked some important instructions. It seems that the problem has not been mentioned. It still took me a long time to find out why. the code followed

df=data.frame(haha=runif(9),gp=factor(rep(c("A","B","C"),3)))
dferr=data.frame(value=runif(9),gp=factor(rep(c("A","B","C"),3)))
cbind(df,dferr)
df |> group_by(gp) |> shapiro_test(haha)
dferr |> group_by(gp) |> shapiro_test(value)

error.pdf