I will take a guess at what you want since you did not program an
example of your data or output desired:
> a <- 1:4
> b <- 1:6
> # get error message
> cbind(a,b)
a b
[1,] 1 1
[2,] 2 2
[3,] 3 3
[4,] 4 4
[5,] 1 5
[6,] 2 6
Warning message:
In cbind(a, b) :
number of rows of result is not a mu
m
Gesendet: Friday, October 02, 2009 6:13 PM
An: R help
Betreff: [R] how to fill out the empty spots when using rbind or cbind?
I have uneven vectors I want to use cbind or rbind to combine them into a
matrix. Is there a way to make it so that R would not return error msg
saying they're
I have uneven vectors I want to use cbind or rbind to combine them into a
matrix. Is there a way to make it so that R would not return error msg saying
they're uneven?
Thanks.
Edward Chen
Email: tke...@msn.com
Cell Phone: 510-371-4717
[[alt
3 matches
Mail list logo