Question: Replace the ??? with correct R commands or codes 91 - Use the heart dataset and answer the following questions 10 Create a new dataset

91 - Use the heart dataset and answer the following questions 10 Create a new dataset called heart_gender and use the split-apply-combine principle to group by gender, and ThalliumStresstest, and provide their count, avg age, min restbp, max restbp, and avg maxhr 332 - Create a new dataset - heart_age using the heart dataset. heart_age shoul have a new variable (Age(ategory), which combines the age and gender to provi the following categories (Use case_when)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
