you24
February 10, 2020, 3:00pm
1
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)
you24
February 10, 2020, 3:06pm
3
yes its works , thank you
system
Closed
February 17, 2020, 3:06pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.