+ 1
Can anyone who has completed the r course tell me what is wrong with this code?
m <- mean(mtcars$mpg) s <- sd(mtcars$mpg) a <- m+s b <- m-s c <- mtcars[mtcars$mpg<=a || mtcars$mpg>=b,] print(nrow(c))
2 Answers
+ 4
Will
There should be & instead of ||
+ 1
Thanks AJ.