I ran the following code in RStudio:
library("lsr")
df <- data.frame(
rt = c(451, 562, 704, 324, 505, 600, 829),
cond = factor(x=c(1, 1, 1, 2, 2, 2, 2), labels=c("group1", "group2")))
# Welch t-test
independentSamplesTTest(rt ~ cond, df)
and received the following error:
Error in get(as.character(FUN), mode = "function", envir = envir) :
object 'FUN' of mode 'function' was not found
I read on another page that if I run rm(mean)
this would be resolved, but, it doesn't help either.