Hello everyone,
I am new to making functions and couldn't find the answer to the question of whether there even is the possibility to get a vector output for a function?
For instance when I combine two vectors into one like so:
V1 <- c("I", "a", "cat")
V2 <- c("am","crazy","lady")
my_fun <- function(x,y) {
c(rbind(x,y))
}
my_fun(V1,V2)
Is there a way to get the output
c("I","am","a","crazy","cat","lady")
instead of
[1] "I" "am" "a" "crazy" "cat" "lady"