script "run_analysis.r"
*1) Check the "./CourseProject" directory and (if False) creat it
*2) Download and unzip data file
-
Read data and creating datasets in variables:
[1] "subject_test"
[2] "subject_train"
[3] "X_test"
[4] "X_train"
[5] "Y_test"
[6] "Y_train"
[7] "activity_labels" -
Change variable names of subject and activity dataframes to "subject" and "activity" respectively
-
Combine [1-6] dataset to form one, witch store in variable "Combo"
-
create a list of variable names and store in variable "n"
-
select variables in dataset "Combo", witch contain Mean and SD values, and "subject" and "activity" variables, and store them in the dataframe named "ComboMS"
-
change values of "activity" variable from numbers to activity labels from "activity_labels" dataset
-
apply discriptive variable names to the "ComboMS" dataframe
-
arrange "ComboMS" dataframe by "subject" and "activity" variables
-
create data set with the average of each variable for each activity and each subject, and store it in "ComboGS" dataframe, which is tiby data
-
creation of tiny_data file (.txt) in the working directory
*this steps are in code with # simble