Make sure that "run_analysis.R" and "UCI HAR Dataset" folder are in your working directory. Run the script to tidy data using
source('run_analysis.R')
It will read in 8 files from the Samsung dataset and combine it to 2 individual tidy datasets. More info on the variables is in CodeBook.md. More info on the performed transformations is the script comments.