whats that mean: Erreur : `d` must evaluate to column positions or names, not a list

Hi,
please can someone tell me whats the problem with this code ( i think its basic thing but i really dont understood the problem)

library(dplyr)

library(tidyr)
library(BayesFactor)

d<- read.table("stat_pretest.txt", sep = "\t", header = T)
d<-d[d$rts<7000,]

d1TR <- d %>%

  • select(d, -exactitude)%>%
  • spread(key = cond, value = rts)
    Erreur : d must evaluate to column positions or names, not a list

the pipe %>% sends d as the first parameter to select already, so you would omit the explicit d if you are using the pipe, or else dont use the pipe and use the explicit version
either

d1TR <- select(d, -exactitude)

or

d1TR <- d %>% select( -exactitude)

yes its works , thank you :slight_smile:

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