Re: [R] piping in only specific parts of a certain column

2020-07-02 Thread Drake Gossi
Thank you very much, Jim and Rui. The line that ended up working for me was this: > ed_exp3 <- unclean_data[which(unclean_data$question == 3) %in% c("`grid > text`")] However, as I read and study Jim's and Rui's code, I see how those would work too. Thank you all again! On Thu, Jul 2, 2020 at

Re: [R] piping in only specific parts of a certain column

2020-07-02 Thread Rui Barradas
Hello, Maybe the following is what you are looking for. unclean_data %>% filter(question == 3) %>% mutate(line = row_number()) %>% select(line, `grid text`) Hope this helps, Rui Barradas Às 23:47 de 01/07/2020, Drake Gossi escreveu: > Hello! > > Question. I'm dealing with a

Re: [R] piping in only specific parts of a certain column

2020-07-02 Thread Jim Lemon
Hi Drake, This is a guess on my part, but what about: \ q3only<-unclean_data[unclean_data$question == 3,] then perform your operations on q3only Jim On Thu, Jul 2, 2020 at 8:35 PM Drake Gossi wrote: > > Hello! > > Question. I'm dealing with a large excel sheet that I'm trying to tidy > and

[R] piping in only specific parts of a certain column

2020-07-02 Thread Drake Gossi
Hello! Question. I'm dealing with a large excel sheet that I'm trying to tidy and then visualize, and I'm wondering how I might specify the data I'm visualizing. Here's the data frame I'm working with: > str(unclean_data) Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 1909 obs. of 9 variables: $