Skip to content

Instantly share code, notes, and snippets.

@drivendata
drivendata / functions_to_keep_it_fresh.R
Created May 28, 2015 15:18
functions_to_keep_it_fresh.R
# INSTALL JSON PACKAGE IF NEEDED
#install.packages("jsonlite")
library("jsonlite")
# ===== FUNCTIONS FOR ID MATCHING ============
getReverseIds <- function(pathToRestaurantIdsCSV){
# load the id map from the csv
bosToYelp <- read.csv(pathToRestaurantIdsCSV, na.strings="")
# for storing the inverse mapping