Create a function that takes in a name as a string argument, and prints out "Hello name"
Let us create a function to print out “Hello Sam”
hello_you <- function(name){
print(paste('Hello',name))
}
hello_you('Sam')
Output
[1] "Hello Sam"