tags:

views:

121

answers:

1

Can a function in R return not one, but two vectors?

(I am really beginning with R, so I might be overlooking something simple)

+4  A: 

Return them in a list:

return(list(v1=v1,v2=v2))

teucer
ha, that's it. Thanks.
Karel Bílek