New to dplyr with question about select

Greetings all.

I am trying to use the select command to select a set of columns, and then recode one of the variables. My code is

PISA18reg <- read.csv(file.choose(),header=T)
PISA18reg %>% select(PV1READ, Female, ESCS, 
              METASUM, PERFEED, JOYREAD, MASTGOAL, 
              ADAPTIVITY, TEACHINT, SCREADDIFF,SCREADCOMP)

The problem is that the selection doesn't seem to take and when I look at PISA18reg, all of the columns of data are there. I' m new to dplyr and so I'm sure this is a simple question, but I haven't figured out the problem.

Thanks

tidyverse functions do not perform "in place" modifications, they create a new data frame instead, if you want to overwrite the original data frame, you have to do it explicitly.

PISA18reg <- PISA18reg %>% select(PV1READ, Female, ESCS, 
              METASUM, PERFEED, JOYREAD, MASTGOAL, 
              ADAPTIVITY, TEACHINT, SCREADDIFF,SCREADCOMP)

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.