i have 
> x
[1] 1 2 3 4 5 6
> y
[1] 34  5  6
> z<-cbind(x,y)
> z
     x  y
[1,] 1 34
[2,] 2  5
[3,] 3  6
[4,] 4 34
[5,] 5  5
[6,] 6  6

i don't want recycling, instead can we put NA /0 like below> z
     x  y
[1,] 1 34
[2,] 2  5
[3,] 3  6
[4,] 4  NA
[5,] 5  NA
[6,] 6  NA

& want distance matrix


--
View this message in context: 
http://r.789695.n4.nabble.com/how-to-bind-uneven-column-not-equal-length-into-matrix-without-recycling-values-tp4474304p4474304.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to