Fahrenheit to Celsius Calculator
Exercise Type: Implementation
Instructions
Based on an other exercise (do that if you haven’t yet), implement a function to calculate Celsius (°C) values from Fahrenheit (°F)!
what | name |
---|---|
name | FahrenheitToCelsius() |
argument(s) | celsius |
return | single numeric value |
Testing
If you have worked correctly, then the following lines of code should be returning TRUE
!
# valid input
FahrenheitToCelsius(32) == 0
FahrenheitToCelsius(212) == 100
# input
is.na(FahrenheitToCelsius("asd"))