Question: Create a vector K with the following weights for 1 2 individuals: 5 6 , 7 8 , 9 6 , 6 7 , 8

Create a vector K with the following weights for 12 individuals: 56,78,96,67,89,72,67,98,56,45,90,73
(a) Write an R command to extract the 6th value of the vector K .
(b) Write an R command to extract the first 6 elements of the vector K .
(c) Write an R command to extract the last 3 elements of the vector K .
(d) In this group, people whose weights exceed 80 kg are classified as overweight. Write R commands to extract the weights of the overweight people in this group
Create a vector K with the following weights for

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 Programming Questions!