Skip to content

mankie84/GettingAndCleaningData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

run_analysis.R

created:08/02/2015

SEE ADDITIONAL INSTRUCTIONS IN run_analysis.R

  1. The R script takes requires the full "UCI HAR Dataset" folder in your work directory.
  2. At first, it checks whether the folder is present.
  3. It then prepares all descriptive variables, containing the future column names for the tidy data set.
  4. The script works in three steps to produce the tidy data set: at first all cleaning operations for the dataset and then all cleaning operations on the set. Finally, it merges both sets.
  5. The R script analyzes the merged data and returns measurement averages for each variable, once per activity and subject and once grouped by both; activity and subject.
  6. The analysis result is stored in mean_act (means per measurement and activity), mean_sub (mean per measurement and subject) and mean_all (mean per measurement over subject and activity).
  7. In the end, the output from <mean_all> is written to the "result.txt" into the work directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages