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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!