Skip to content

Instantly share code, notes, and snippets.

@walkerke
Created April 6, 2016 17:42
Show Gist options
  • Save walkerke/8f82e874c77f05e6ee9f5ec62e054279 to your computer and use it in GitHub Desktop.
Save walkerke/8f82e874c77f05e6ee9f5ec62e054279 to your computer and use it in GitHub Desktop.
# Set your working directory in RStudio to your data/script directory
# Session > Set Working Directory > To Source File Location
# If necessary, first run
# install.packages(c('rgdal', 'readr', 'dplyr', 'tigris', 'ggplot2', 'scales'))
library(rgdal) # For loading spatial data
library(readr) # For loading tabular data
library(dplyr) # For processing tabular data
library(tigris) # For joining spatial and tabular data
library(ggplot2) # For exploratory visualization
library(scales)
# Read in the pipe-delimited TAD dataset
tad_data <- read_delim('PropertyData(Delimited)/PropertyData.txt', delim = '|')
# Subset for records in Fort Worth, and drop unneeded columns
tad_sub <- tad_data %>%
filter(City == '026') %>%
select(GIS_Link, Total_Value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment