Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
a) Generate a vector x consisting of the values 0.2, 3, 4.48, and 5. Append a sequence of equidistant values starting with 2.5 and ending
a) Generate a vector x consisting of the values 0.2, 3, 4.48, and 5. Append a sequence of equidistant values starting with 2.5 and ending with 11 which consists of 5 values. The vector should now consist of 9 values. b) Use x to generate three more vectors: one vector is x divided by 2 , one vector is x multiplied by 3.5 and one vector is x multiplied by 6 . Generate a vector y consisting of these three vectors which has length 27. c) Calculate the maximum, minimum, and mean of y. Exercise 2 a) Generate the following data frame ( m= male, f= female, age in years, weight in kg, height in cm ): b) Add a new variable bmi to the data frame which is defined as follows: bmi18.5underweight18.5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started