edquant / edh7916

Course materials and website for EDH7916: Contemporary Research in Higher Education
https://edquant.github.io/edh7916/
3 stars 1 forks source link

Assignment 4 - part 2 of question 1 #16

Closed jharsell closed 4 years ago

jharsell commented 4 years ago

Hi All,

After spending an embarrassing amount of time on part 2 of question one, I am stuck. Here is the is my latest code after rereading the lesson and StackOverflow on join commands and subtraction:

df_tmp3 <- df_joined %>%
  filter(x1txmtscor > 0, stu_id) %>%
  left_join(by = "stu_id",x1txmtscor - test_scr_mean) 

Anyone have any advice on what I am omitting or where I am going wrong?

btskinner commented 4 years ago

@jharsell, take another look at your last line:

left_join(by = "stu_id",x1txmtscor - test_scr_mean)

You are trying to both join and add (or mutate) a new column in the same left_join() function. Try splitting those into two separate steps.

btskinner commented 4 years ago

Linking @taylorburtch's issue (#15), which is on track for the other part of the answer to this question.

btskinner commented 4 years ago

Closing, but reopen if you have new questions later.