Skip to content

Commit 26e426a

Browse files
committed
1 parent 10c7782 commit 26e426a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PA1_template.Rmd

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

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

46-
```{r install_dplyr}
46+
```{r install_dplyr, message=FALSE, warning=FALSE}
4747
options(repos="https://cran.rstudio.com" )
4848
if (!require(dplyr)) install.packages("dplyr")
4949
library(dplyr)
@@ -63,10 +63,9 @@ mean_total_steps <- activity %>%
6363
summarise(mean_total_steps = mean(daily_steps, na.rm = TRUE))
6464
6565
steps <- round(mean_total_steps, 0)
66-
steps
6766
```
6867

69-
Result: `r steps` steps.
68+
Result: `r as.integer(steps)` steps.
7069

7170

7271
## What is the average daily activity pattern?

0 commit comments

Comments
 (0)