Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 5 b: Update the ` FRTDAY ` column in the dataframe ` brf _ part 1 ` by removing the respondents who said don't

Q5b: Update the `FRTDAY` column in the dataframe `brf_part1` by removing the respondents who said "don't know/not sure" or refused to respond. Drop the original fruit variable from the `brf_part1` dataframe (but keep FRTDAY). Store the first 10 rows of the dataframe as `Q5.`
Hint: The resulting dataframe is 422,747 x 3. Be sure the variables are in this order (left to right): FRTDAY, the length of time variable, then the general health variable.
```{r}
### Do not edit the following line. It is used by CodeGrade.
# CG Q5 #
### TYPE YOUR CODE BELOW ###
### VIEW OUTPUT ###
Q5
```
## Q6 Create a 5 x 5 dataframe with the mean, median, standard deviation, and count of FRTDAY split by the general health of the respondent. Store the result as `Q6.`
Hint: The resulting 5 x 5 dataframe should look like this. The `[...]` is the name of the health variable.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

5. How does unpredictability teach flexibility?

Answered: 1 week ago

Question

9. Describe the characteristics of power.

Answered: 1 week ago