When we write a function, is it always necessary to "return" a value? For example, could we write a function ...
avg_1 <- function(x) {
[meat of function]
}
and in this case, I haven't put return, paste, print or cat?
In other words, is it necessary to supplant a command once I've written the function so that an output is produced?