-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example literature and a example script
- Loading branch information
1 parent
d15ff0b
commit 573193a
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
first_col, second_col, third_col | ||
some, raw, data |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#### Preamble #### | ||
# Purpose: Clean the survey data downloaded from [...UPDATE ME!!!!!] | ||
# Author: Rohan Alexander [CHANGE THIS TO YOUR NAME!!!!] | ||
# Data: 3 January 2021 | ||
# Contact: [email protected] [PROBABLY CHANGE THIS ALSO!!!!] | ||
# License: MIT | ||
# Pre-requisites: | ||
# - Need to have downloaded the ACS data and saved it to inputs/data | ||
# - Don't forget to gitignore it! | ||
# - Change these to yours | ||
# Any other information needed? | ||
|
||
|
||
#### Workspace setup #### | ||
# Use R Projects, not setwd(). | ||
library(haven) | ||
library(tidyverse) | ||
# Read in the raw data. | ||
raw_data <- readr::read_csv("inputs/data/raw_data.csv" | ||
) | ||
# Just keep some variables that may be of interest (change | ||
# this depending on your interests) | ||
names(raw_data) | ||
|
||
reduced_data <- | ||
raw_data %>% | ||
select(first_col, | ||
second_col) | ||
rm(raw_data) | ||
|
||
|
||
#### What's next? #### | ||
|
||
|
||
|
||
|