Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

munging

  • Loading branch information...
commit 1d2e24d886f0940fc896a8f026bb26ea4a693180 1 parent 86215fb
Thomas Levine authored
2  analysis/munge/0-rename.R
... ... @@ -0,0 +1,2 @@
  1 +yoga <- dumptruck
  2 +rm(dumptruck)
1  analysis/munge/01-A.R
... ... @@ -1 +0,0 @@
1   -# Example preprocessing script.
7 analysis/munge/3-zip.R
... ... @@ -0,0 +1,7 @@
  1 +get.zip.code <- function(messy.zip) {
  2 + sub('[^0-9]*([0-9]{5}).*', '\\1', messey.zip)
  3 +}
  4 +
  5 +# Get the zip code
  6 +aff$zip <- get.zip.code(aff$GCT_STUB.display.label.1)
  7 +yoga$zip <- get.zip.code(yoga$Zip)

0 comments on commit 1d2e24d

Please sign in to comment.
Something went wrong with that request. Please try again.