Closed JesseeEspinosa closed 2 years ago
Last week I had a comment related to the subsets as well! the parentheses and everything can definitely trip you up. I found it a lot easier to use pipes for this question. This is what my code looked like. I guess its more tidyverse than baseR, but its the only way I was able to avoid the error message. I will keep following this issue for feedback from other folks who may have had another way of doing it
subsetframe<-df_event %>% select(univ_id, event_date, event_type, zip, med_inc) names(subsetframe)
I have been trying to get the 2nd subquestion under question four, "base R using subsetting operators:", to work and I have no idea what to try next. If someone could please point me in the right direction, that would be really kind.
DF2 <- select(subset(df_event, df_event$univ_id & df_event$event_type & df_event$event_date & df_event$med_inc & df_event$zip)) names(DF2)
Overall, I became more comfortable with subsetting and utilizing different selection methods today.
@wdoyle42 @ozanj, @lizachavac, @briannawright135