Skip to content

Instantly share code, notes, and snippets.

View smmaurer's full-sized avatar

Sam Maurer smmaurer

View GitHub Profile
@smmaurer
smmaurer / map.geojson
Last active January 25, 2016 22:26
Seattle - Aug 2013
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smmaurer
smmaurer / map.geojson
Last active January 25, 2016 22:26
Vancouver - Aug 2013
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Introduction to R for Hedonic Regression

  1. Setting the stage
  2. Basics of the language
  3. Demo in RStudio
  4. Strategies for writing code

1. Setting the stage

What is R?

@smmaurer
smmaurer / gist:c0e20b1bce754c92e149
Last active August 29, 2015 14:15
Code snippet for queries to a Google REST API
for feature in data['features']:
# Break after a couple of features for testing
# if feature['id'] == 2:
# break
coords = feature['geometry']['coordinates']
# Assemble locations for elevation query: 'lat,lng|lat,lng|etc'
locStr = ''
Started Fri Jun 17 11:36:36 2016
Current Commit : 0da6fbdbefa23605305c1e124893b49e95277f01
Current Scenario : 0
Running step 'ual_initialize_residential_units'
Filling column building_type_id with value 1 (0 values)
Filling column residential_units with value 0 (0 values)
Filling column year_built with value 1967.0 (0 values)
Filling column non_residential_sqft with value 0 (0 values)
Time to execute step 'ual_initialize_residential_units': 6.24 s
Running step 'ual_match_households_to_units'
@smmaurer
smmaurer / map.geojson
Last active May 1, 2017 04:47
Amsterdam cycling 2016
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smmaurer
smmaurer / map.geojson
Last active December 12, 2017 00:00
San Francisco walking 2017
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smmaurer
smmaurer / map.geojson
Last active July 1, 2017 22:40
Twin Clouds parking
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smmaurer
smmaurer / 2018-07-chts-destination-choice.ipynb
Created July 23, 2018 22:19
Building a custom merged choice table
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.