lecy / neighborhood_change_phx

https://lecy.github.io/neighborhood_change_phx/
1 stars 3 forks source link

2000-2010 CensusTract Crosswalk #8

Open kendellebrown opened 5 years ago

kendellebrown commented 5 years ago

CensusTractCrosswalk_2000_to_2010xlsx.xlsx


title: "Crosswalk" author: "Kendelle Brown" date: "April 3, 2019" output: html_document

knitr::opts_chunk$set(echo = TRUE)

library( dplyr )
library( geojsonio )
library( sp )

Crosswalk 2000-2010

crosswalk2000.2010 <- read.csv("C:/Users/ksbrow15/Desktop/CAPSTONE PROJECT/CensusData/CensusTractCrosswalk_Maricopa_2000_to_2010.csv" ) 

crosswalk <- `crosswalk2000.2010`$CHANGE
crosswalk <= "0.01"

remove( list = crosswalk <= "0.01" )
# There were 50 or more warnings but don't think it did anything?

crosswalk2000.2010 <- crosswalk2000.2010[ -c(crosswalk <= "0.01") ]
# ran but didn't change anything
lecy commented 5 years ago

Kendell - where can I find this file?

read.csv("C:/Users/ksbrow15/Desktop/CAPSTONE PROJECT/CensusData/CensusTractCrosswalk_Maricopa_2000_to_2010.csv" )

Jesse Lecy Associate Professor • Arizona State University Academic Director: M.S. in Program Evaluation and Data Analytics M: +1 801 462 1648 / *@: jdlecy@asu.edu / W: *publicservice.asu.edu

On Wed, Apr 3, 2019 at 4:53 PM kendellebrown notifications@github.com wrote:

CensusTractCrosswalk_2000_to_2010xlsx.xlsx https://github.com/lecy/neighborhood_change_phx/files/3041038/CensusTractCrosswalk_2000_to_2010xlsx.xlsx

title: "Crosswalk" author: "Kendelle Brown" date: "April 3, 2019" output: html_document

knitr::opts_chunk$set(echo = TRUE)

library( dplyr ) library( geojsonio ) library( sp )

Crosswalk 2000-2010

crosswalk2000.2010 <- read.csv("C:/Users/ksbrow15/Desktop/CAPSTONE PROJECT/CensusData/CensusTractCrosswalk_Maricopa_2000_to_2010.csv" )

crosswalk <- crosswalk2000.2010$CHANGE crosswalk <= "0.01"

remove( list = crosswalk <= "0.01" )

There were 50 or more warnings but don't think it did anything?

crosswalk2000.2010 <- crosswalk2000.2010[ -c(crosswalk <= "0.01") ]

ran but didn't change anything

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lecy/neighborhood_change_phx/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJzC7FuprzU2Cjm1f4IHC2ZPgj3YrWvks5vdTDagaJpZM4cbl8j .

kendellebrown commented 5 years ago

Sorry! I thought I uploaded it but it only let me upload it as an xlsx file.

I’ll attach it here and try to upload it to the data folder.

From: Jesse Lecy notifications@github.com Sent: Wednesday, April 3, 2019 5:08 PM To: lecy/neighborhood_change_phx neighborhood_change_phx@noreply.github.com Cc: Kendelle Brown kendelle.brown@asu.edu; Author author@noreply.github.com Subject: Re: [lecy/neighborhood_change_phx] 2000-2010 CensusTract Crosswalk (#8)

Kendell - where can I find this file?

read.csv("C:/Users/ksbrow15/Desktop/CAPSTONE PROJECT/CensusData/CensusTractCrosswalk_Maricopa_2000_to_2010.csv" )

Jesse Lecy Associate Professor • Arizona State University Academic Director: M.S. in Program Evaluation and Data Analytics M: +1 801 462 1648 / *@*: jdlecy@asu.edumailto:*jdlecy@asu.edu / *W*: publicservice.asu.edu

On Wed, Apr 3, 2019 at 4:53 PM kendellebrown notifications@github.com<mailto:notifications@github.com> wrote:

CensusTractCrosswalk_2000_to_2010xlsx.xlsx https://github.com/lecy/neighborhood_change_phx/files/3041038/CensusTractCrosswalk_2000_to_2010xlsx.xlsx

title: "Crosswalk" author: "Kendelle Brown" date: "April 3, 2019" output: html_document

knitr::opts_chunk$set(echo = TRUE)

library( dplyr ) library( geojsonio ) library( sp )

Crosswalk 2000-2010

crosswalk2000.2010 <- read.csv("C:/Users/ksbrow15/Desktop/CAPSTONE PROJECT/CensusData/CensusTractCrosswalk_Maricopa_2000_to_2010.csv" )

crosswalk <- crosswalk2000.2010$CHANGE crosswalk <= "0.01"

remove( list = crosswalk <= "0.01" )

There were 50 or more warnings but don't think it did anything?

crosswalk2000.2010 <- crosswalk2000.2010[ -c(crosswalk <= "0.01") ]

ran but didn't change anything

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lecy/neighborhood_change_phx/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJzC7FuprzU2Cjm1f4IHC2ZPgj3YrWvks5vdTDagaJpZM4cbl8j .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lecy_neighborhood-5Fchange-5Fphx_issues_8-23issuecomment-2D479701662&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=QUfM8TmGpp6n7ANkjgeIRrKgLA0UJmzPspmOzlSVa9M&m=nQ1moMotg4fCGTHHHg8oaxNGp4Ifv1SgkuRf3KuSAzU&s=HGG4ZkUde-LSV1_xAooiv8ZJmc1AR3mvxxJs6qBsqqI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Ao7nWlItWLBO2QcUlAuw38IWhtHGrNxqks5vdUJSgaJpZM4cbl8j&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=QUfM8TmGpp6n7ANkjgeIRrKgLA0UJmzPspmOzlSVa9M&m=nQ1moMotg4fCGTHHHg8oaxNGp4Ifv1SgkuRf3KuSAzU&s=AUvfnyr8D5PzWiqqRezaMPte9XreqHIe8nHugqlh9YQ&e=.

lecy commented 5 years ago

You can't attach files on a reply to GitHub...

lecy commented 5 years ago
url <- "https://raw.githubusercontent.com/lecy/neighborhood_change_phx/master/data/crosswalk/CensusTractCrosswalk_Maricopa_2000_to_2010.csv"

crosswalk2000.2010 <- read.csv( url, stringsAsFactors=F )

crosswalk <- crosswalk2000.2010$CHANGE
crosswalk[ crosswalk < 2.00 ]

# 3 equal versions:

d2 <- crosswalk2000.2010[ crosswalk2000.2010$CHANGE <= 1.00 , ] # core R

library( dplyr )

d2 <- filter( crosswalk2000.2010, CHANGE <= 1.00 )

d2 <- 
  crosswalk2000.2010 %>%
  filter( CHANGE <= 1.00 )