This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check_temperature <- function(temperature){ | |
if(temperature > 85){ | |
print("It's hot. Bring water and sunscreen.") | |
} else { | |
print("Looks like a great day to hike!") | |
} | |
} | |
check_temperature(68) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code to read the FAF network | |
# Greg Macfarlane | Parsons Brinckerhoff | |
# ORNL provides the FAF network as a TransCAD network, and also as a shapefile | |
# that I think is probably exported from the TransCAD network. Kyle Ward in the | |
# Raleigh office tried to export an xml file from TransCAD, but it wasn't quite | |
# right. So I decided to write this script to make an xml MATSim network from | |
# the shapefile. |
NewerOlder