Question: Next steps in R to convert FRTDAY using FRUIT2 value, brf_Q5a % mutate(FRTDAY = case_when(FRUIT2 == 300 ~ 0.02, between(FRUIT2, 101, 199)~200086, between(FRUIT2, 201, 299)~round((123019

Next steps in R to convert FRTDAY using FRUIT2 value,

brf_Q5a <- brf_Q2 %>% mutate(FRTDAY = case_when(FRUIT2 == 300 ~ 0.02, between(FRUIT2, 101, 199)~200086, between(FRUIT2, 201, 299)~round((123019 / 7),2), between(FRUIT2, 301, 399)~round((56983 / 30),2), FRUIT2 == 555~0, FRUIT2 == 777~NA_real_, FRUIT2 == 999~NA_real_, TRUE~NA_real_, ), .before = 1 )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Law Questions!