Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Intro. Run this to see what the ChickWeight dataset looks like: ` ` ` { r } ChickWeight % > % head ( ) ChickWeight

Intro. Run this to see what the ChickWeight dataset looks like:
```{r}
ChickWeight %>% head()
ChickWeight %>% tail()
```
### a\*. Create a table of the median chick weight for each diet (name it median_weight_by_diet). Call the column containing this median weight *median_weight*. Save this table as Q24.
```{r}
median_weight_by_diet <- ChickWeight %>%
# ... complete this
median_weight_by_diet
```
We don't know if this tells the whole story.
The chicks grew, but it's possible that those in one diet were measured less often than those in another.
Let's look at some general exploratory analysis. Write code that answers these questions:
### b*. How many rows are there for each diet? Save the result as rows_per_diet.
```{r}
rows_per_diet
```
### c*. How many rows are there for each chick? Save the result as rows_per_chick.
Note! this will also allow you to figure out how many chicks there are in this data. There will be one row per chick.
```{r}
rows_per_chick
```
### d*. How many chicks were on each diet? Create a table that answers this question and save it to variable chicks_per_diet. Make this table only from the functions we we learned about: group_by, mutate, select, filter, arrange, summarize, tally().(You will not need all of these functions.)

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

Advances In Spatial And Temporal Databases 10th International Symposium Sstd 2007 Boston Ma Usa July 2007 Proceedings Lncs 4605

Authors: Dimitris Papadias ,Donghui Zhang ,George Kollios

2007th Edition

3540735399, 978-3540735397

More Books

Students also viewed these Databases questions

Question

Define Administration?

Answered: 1 week ago

Question

Connect with your audience

Answered: 1 week ago