Downloaded the row dataset zip file and unziped it as the name UCI HAR Dataset
in the current working directory.
-
The loaded text is stored in following variables :
train_x
data.frame oftrain/X_train.txt
train_y
data.frame oftrain/y_train.txt
test_x
data.frame oftest/X_test.txt
test_y
data.frame oftest/y_test.txt
featureName
fromfeatures.txt
activityName
fromactivity_labels.txt
subjectTrain
fromsubject_train.txt
subjectTest
fromsubject_test.txt
-
The merged dataset variables are :
x_merged
merged fromtrain_x
andtest_x
usingrbind()
functiony_merged
merged fromtrain_y
andtest_y
usingrbind()
functionsubject_merged
merged fromsubjectTrain
andsubjectTest
usingrbind()
functionMergeAll
merged fromx_merged
,y_merged
andsubject_merged
usingcbind()
function
-
Column names in the final Tidy dataset :
code
contains the correct names for thetidyData
dataset, which are applied to the column names stored in in accordance with theactivityNames
.FinalTidyData1.txt
file contains the finaltidyData
summarized dataset.