File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ This concludes the loading and preprocessing of the data. [Element #1 required f
43
43
44
44
Since we'll be using ` group_by() ` and related commands to figure this out we need to install and load the ` dplyr ` package:
45
45
46
- ``` {r install_dplyr}
46
+ ``` {r install_dplyr, message=FALSE, warning=FALSE }
47
47
options(repos="https://cran.rstudio.com" )
48
48
if (!require(dplyr)) install.packages("dplyr")
49
49
library(dplyr)
@@ -63,10 +63,9 @@ mean_total_steps <- activity %>%
63
63
summarise(mean_total_steps = mean(daily_steps, na.rm = TRUE))
64
64
65
65
steps <- round(mean_total_steps, 0)
66
- steps
67
66
```
68
67
69
- Result: ` r steps ` steps.
68
+ Result: ` r as.integer( steps) ` steps.
70
69
71
70
72
71
## What is the average daily activity pattern?
You can’t perform that action at this time.
0 commit comments