Question: In the Chapter 3 video we learned how to create a vector using strings or numbers. Also, we learned how to use functions such as
In the Chapter 3 video we learned how to create a vector using strings or numbers. Also, we learned how to use functions such as mean, sum. In addition, it also introduced if statement. age <- c(24, 34, 40) myAge <- 40 You want to test if myAge is bigger than the first element of the age vector. The script will print out "not so old" if myAge is bigger than the first element of age vector. Fill in the empty space with your code. ***HINT: watch the video (Chapter 3) carefully again, you will be able to find the answer for this. The first element of the age vector should be assigned (do not assign the value "24" as is). No space is allowed to your answer inputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
