{"id":21165235,"url":"https://github.com/jomit/getting-and-cleaning-data-","last_synced_at":"2025-03-14T16:38:41.898Z","repository":{"id":29125166,"uuid":"32654957","full_name":"jomit/Getting-and-Cleaning-Data-","owner":"jomit","description":"Getting and Cleaning Data Course Project. Uses 'R' to create an analysis script to tidy up the UCI  Human Activity Recognition data set ","archived":false,"fork":false,"pushed_at":"2015-03-22T02:24:56.000Z","size":59664,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T10:07:51.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jomit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-21T23:55:31.000Z","updated_at":"2015-03-22T02:24:56.000Z","dependencies_parsed_at":"2022-07-24T16:47:01.774Z","dependency_job_id":null,"html_url":"https://github.com/jomit/Getting-and-Cleaning-Data-","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomit%2FGetting-and-Cleaning-Data-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomit%2FGetting-and-Cleaning-Data-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomit%2FGetting-and-Cleaning-Data-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomit%2FGetting-and-Cleaning-Data-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jomit","download_url":"https://codeload.github.com/jomit/Getting-and-Cleaning-Data-/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243613087,"owners_count":20319465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T14:23:35.649Z","updated_at":"2025-03-14T16:38:41.870Z","avatar_url":"https://github.com/jomit.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"Getting and Cleaning Data Course Project\n========================================================\n\nIntroduction\n-----------------\nThis repository contains the project work for the Coursera course \"Getting and Cleaning data\". The purpose of this project is to demonstrate your ability to collect, work with, and clean a data set. The goal is to prepare tidy data that can be used for later analysis.  \n\n`UCI HAR Dataset` folder:\n-----------------\n\nContains the raw dataset used for analysis.\n\n`CodeBook.md` file:\n-----------------\n\nDescribes the variables, the data, and all the transformations that were performed to create the tidy dataset.\n\n`run_analysis.R` file:\n-----------------\n\nThe R script that performs analysis on the raw dataset and generates a tidy dataset.\n\nHow the `run_analysis.R` script works\n-----------------\n(Note: Extract the `UCI HAR Dataset` folder in your working directory before running the script)\n\n* It reads the train and test sensor data from `X_train.txt`, `X_test.txt` files and merges it using `rbind`.\n* It reads the train and test activity data from `y_train.txt`, `y_test.txt` files, merges it using `rbind` and changes column name to `Activity`.\n* It reads the train and test subject data from `subject_train.txt`, `subject_test.txt` files, merges it using `rbind` and changes column name to `Subject`.\n* It changes the column names of sensor data with the descriptive names in `features.txt` file\n* It merges the sensor, activity and subject data using `cbind`\n* It selects only columns which have `mean()` or `std()` in their names, `Subject`, `Activity` and creates a new data frame named `meanstdData`\n* It reads all activity names from `activity_labels.txt` file\n* It changes the activity numbers to descriptive activity names using `match`\n* It creates a tidy data frame with the average of each variable for each activity and each subject using `aggregate` function\n* It removes the extra `Subject` and `Activity` columns from the end\n* It creates a file `UCI HAR Tidy Dataset.txt` from tidy dataset using `write.table`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomit%2Fgetting-and-cleaning-data-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomit%2Fgetting-and-cleaning-data-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomit%2Fgetting-and-cleaning-data-/lists"}