lforando / mini-project-3

Macleish Data
0 stars 0 forks source link

ifelse statment #7

Open lforando opened 5 years ago

lforando commented 5 years ago

I just committed the newest code...one problem is that we need to combine the shenandoah_x files together into one data frame/table before we can write the "ifelse" statement and plot. Otherwise, everything else is all set....

The code for the if-ifelse statement is:

x <- trials %>%
full_join(df, by = c("name")) %>%
mutate(rank = ifelse(rank/order < #, "Easy", ifelse(rank/order < #), "Moderate", ifelse(rank/order >#), "Difficult", "Not Available"))))

Some of these are place holders for things we need to define before running/filling in the code