Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uriklar/omerproject
https://github.com/uriklar/omerproject
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/uriklar/omerproject
- Owner: uriklar
- Created: 2014-08-20T18:17:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-20T20:21:10.000Z (about 10 years ago)
- Last Synced: 2024-10-17T16:05:24.282Z (about 1 month ago)
- Language: R
- Size: 3.81 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Getting and Cleaning Data Course Project
========================================
This file describes how run_analysis.R script works.
* 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.
* Second, use source("run_analysis.R") command in RStudio.
* Third, you will find two output files are generated in the current working directory:
- merged_data.txt (6.3 Mb): it contains a data frame called cleanedData with 10299*81 dimension.
- data_with_means.txt (124 Kb): it contains a data frame called result with 180*81 dimension.
* Finally, use data <- read.table("agg.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 81 features.