For an assignment, I have to write a simple function, store it in a separate file, and use it in an exercise.
How do I store/save a function in a separate file? I'm sure this is very simple, but I can't seem to find it (complete newbie at R, if you haven't guessed yet).
The function is:
seconds2hours <- function(duration){
result <- duration / 3600
return(result)
}