Conditionals
What will this conditional expression return? Run it from the console.
x <- c(1,2,-3,4)
if(all(x>0)){
print("All Positives")
} else{
print("Not All Positives")
}
This exercise is part of the course
Data Science R Basics
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
