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
4343
4444Since 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 }
4747options(repos="https://cran.rstudio.com" ) 
4848if (!require(dplyr)) install.packages("dplyr") 
4949library(dplyr) 
@@ -63,10 +63,9 @@ mean_total_steps <- activity %>%
6363  summarise(mean_total_steps = mean(daily_steps, na.rm = TRUE)) 
6464
6565steps <- 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?  
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments