I created a simple function.
kelvin_to_celsius <- function(temp_K) {
  temp_C <- temp_K - 273.15
  return(temp_C)
}
I put it in here:
C:\Users\Excel\Documents\kelvin_to_celsius.r
getwd()
[1] "C:/Users/Excel/Documents"
I'm calling the function and getting an error.
kelvin_to_celsius(150)
Error in kelvin_to_celsius(150) : 
  could not find function "kelvin_to_celsius"
Am I missing something here???
 
    