Skip to content

Commit 50bf5e7

Browse files
committed
Added text regarding submission element (rdpeng#3).
1 parent d799425 commit 50bf5e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PA1_template.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ This concludes the loading and preprocessing of the data. [Element #1 required f
4141

4242
## What is mean total number of steps taken per day?
4343

44+
4445
Since we'll be using `group_by()` and related commands to figure this out we need to install and load the `dplyr` package:
4546

4647
```{r install_dplyr, message=FALSE, warning=FALSE}
@@ -53,7 +54,6 @@ NOTE:
5354

5455
Installing packages by means of R Markdown (`knitr` document) is not advised. The consensus seems to be that users should manage their own package library. We should assume that people know how to install a missing package. Here we've opted to download and install the package _only_ if it's necessary. Arguably a number of users might have dplyr installed / loaded already. See this [resource](https://stackoverflow.com/questions/33969024/install-packages-fails-in-knitr-document-trying-to-use-cran-without-setting-a) for more on the subject.
5556

56-
5757
Calculate mean total number of steps per day:
5858

5959
```{r mean_total_steps}
@@ -76,7 +76,9 @@ median_total_steps <- activity %>%
7676
median_steps <- round(mean_total_steps, 0)
7777
```
7878

79-
Result: `r as.integer(median_steps)` steps.
79+
Result: `r as.integer(median_steps)` steps. So, mean and median are equal! [Element #3 required for a complete submission ("Mean and median number of steps taken each day.")]
80+
81+
8082

8183
## What is the average daily activity pattern?
8284

0 commit comments

Comments
 (0)