R cannot detect the column that exist!

R couldn't detect the column that actually exist! How do I fix it?

US_mem_forAV
#A tibble: 206 x 4
#Groups: Subj [103]
Subj Session USIdentity version

1 new108 A 0.0833 sleep
2 new108 B 0.0833 sleep
3 new113 A 0.417 sleep
4 new113 B 0.25 sleep
5 new117 A 0.25 sleep
6 new117 B 0.167 sleep
7 new118 A 0.833 sleep
8 new118 B 0.75 sleep
9 new122 A 1 sleep
10 new122 B 1 sleep
#... with 196 more rows

This is the command I was trying to run:

res.aov <- anova_test(
data = US_mem_forAV, dv = USIdentity, wid = Subj,
between = version, within = Session
)

This is the error message I get:

Error: Problem with mutate() input data.
x Can't subset columns that don't exist.
x Column Subj doesn't exist.
i Input data is map(.data$data, .f, ...)

I also tried ezANOVA but Subj is also not detected/usable.

We don't really have enough info to help you out. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

If you've never heard of a reprex before, you might want to start by reading this FAQ:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.