[Solved] Explanation for If statement in R
file$Efficiency <- cut(file$Duration, breaks=c(-1,5,15,30,200), labels=c(“Above Par”, “Par”, “Below Par”, “Unacceptable”)) Here is a little example of data from me: x <- c(0,1, 4:6, 14:16, 29:31) y <- cut(x, breaks=c(-1,5,15,30,200), labels=c(“Above Par”, “Par”, “Below Par”, “Unacceptable”)) data.frame(x=x, y=y) 1 solved Explanation for If statement in R