Question: using r and dplyr Create a dataframe showing the number and the proportion of individuals in the GENHLTH column who said their health is Excellent
using r and dplyr
Create a dataframe showing the number and the proportion of individuals in the GENHLTH column who said their health is Excellent (1), very good (2) or good (3) for each of the different lengths of times since last checkup CHECKUP1 column which are corresponding to these values.
1 = within past year
2 = 2 years
3 = within past 5 years
4 = 5 years or more
8 = never
Keep them numeric.
. Store as a dataframe named `Q4`. Round to three decimal places. The percentage is out of the total number of observations for the `brf_Q2` dataset which is 431, 750 . If your proportion does not match below, double check your Q2 cleaning. Hint: The 5x3 dataframe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
