https://github.com/ashim888/datacleaningassignment
https://github.com/ashim888/datacleaningassignment
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ashim888/datacleaningassignment
- Owner: ashim888
- Created: 2014-07-27T17:25:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-27T18:37:03.000Z (over 11 years ago)
- Last Synced: 2025-02-24T08:22:19.868Z (11 months ago)
- Language: R
- Size: 3.23 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Data Cleaning Assignment
This file describes how run_analysis.R script works.
1. First, unzip the data from https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip and rename the folder with "data". Make sure the folder "data" and the run_analysis.R script are both in the current working directory.
2. Second, use source("run_analysis.R") command in RStudio.
3. Third, you will find two output files are generated in the current working directory:
merged_data.txt (7.9 Mb): it contains a data frame called cleanedData with 102 99*68 dimension.
data_with_means.txt (220 Kb): it contains a data frame called result with 180* 68 dimension.
4. Finally, use data <- read.table("data_with_means.txt") command in RStudio to read the file. Since we are required to get the average of each variable for each activity and each subject, and there are 6 activities in total and 30 subjects in total, we have 180 rows with all combinations for each of the 66 features.