Question: The data set Health.csv data set uploaded in eLC. This data set contains a random sample of people and some of their health indicators measured

The data set Health.csv data set uploaded in eLC. This data set contains a random sample of people and some of their health indicators measured a few years ago. The variable information is given below:

blood pressure (BP, in mm Hg) age (Age, in years) weight (Weight, in kg) body surface area (BSA, in sq. m) stress level (Low, Medium, High)

1. Write an R code to import this data in R as a tibble using the suitable function and store this data as newdata. Also, write an R code to make a subset of the data based on the low-stress level of the people and record it as Subdata. Print the first 3 observations of the Subdata.

2. Write an R code to compute the average weight of the people across the different levels of the variable stress level. Print the output.

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