#Coursera Getting and Cleaning Data Course Work Script run_analysis.R executes following steps:
- Read test & Train data, and merge those. Column names are assigned.
- Select variables related to mean and standard deviation
- Replace activities with names
- Prepares new tidy data set with the average of each variable for each activity and each subject.
- Saves it in tidy_data.txt in the working directory. Data set saved in text format and could be read back into R with read.table("./tidy_data.txt", header=TRUE)
See detailed info about data in code book
Each variable is in one column, Each different observation of that variable is in a different row
Each variable name includes
##Preconditions for script execution
- Path to data from working directory "./UCI HAR Dataset"
- package dplyr is installed.