Skip to content

Instantly share code, notes, and snippets.

@gregmacfarlane
Last active November 8, 2015 21:14
Show Gist options
  • Save gregmacfarlane/7481fff9f4685ee122da to your computer and use it in GitHub Desktop.
Save gregmacfarlane/7481fff9f4685ee122da to your computer and use it in GitHub Desktop.
Check the temperature for a hike
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment