Pedometer Exercise

Introduction

This is a brief description on analysis of steps taken by a person per day for a month. The steps was recorded by a pedometer, a device that counts each step a person takes by detecting the motion of the person’s hands or hips.

Objectives

Objectives of this analysis are:

  • to count the average number of steps taken by this person
  • to count average steps this person take on Mondays-Sundays (steps per day of the week)
  • to plot a histogram showing the average steps taken per day of the week
  • to calculate the median of the average value of steps taken

Data Loading

  1. Download the csv file pedometer.csv into your pwd.

  2. Read the csv file. Hint : Use the read.csv() function

Count the average number of steps taken by this person.

## [1] 9652.193

Average number of steps taken is 9652.1931818

Average steps taken on Mondays-Fridays

Steps per day of the week

##   Day    Steps
## 1 Fri  8374.17
## 2 Mon  9586.36
## 3 Sat 12676.36
## 4 Sun 10623.40
## 5 Thu  9445.38
## 6 Tue  8888.86
## 7 Wed  8699.00

Step arrange in day order

##   Day    Steps
## 2 Mon  9586.36
## 6 Tue  8888.86
## 7 Wed  8699.00
## 5 Thu  9445.38
## 1 Fri  8374.17
## 3 Sat 12676.36
## 4 Sun 10623.40

Histogram showing the average steps taken per day of the week

Median of the average value of steps taken per day of the week

Median of average value of steps taken per day of the week is 9445.38