Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microeconomics An Intuitive Approach with Calculus

Authors: Thomas Nechyba

1st edition

978-0538453257

Students also viewed these Algorithms questions