Skip to content

How to cbind or rbind different lengths vectors/arrays without repeating the elements of the shorter vectors/arrays ?

3 messages · Ng Stanley, Gabor Grothendieck, John Kane

#
Try converting them to time series, cbinding and unconverting:

cbind(x = ts(x), y = ts(y))[TRUE, ]
On Thu, Mar 13, 2008 at 10:13 AM, Ng Stanley <stanleyngkl at gmail.com> wrote:
#
I don't think you can. What is your desired output?  

You can always do c(1:2, 1:10)
--- Ng Stanley <stanleyngkl at gmail.com> wrote:

            
Looking for the perfect gift? Give the gift of Flickr!