On Tue, May 1, 2012 at 2:12 PM, Nick Switanek wrote:
> Thank you, Sarah!
>
> Yes, unlist() looks like it will do just what I need. Thank you.
>
> I took a different tack. I'd changed the function returning A to coerce the
> row from the data.frame using as.numeric(). Any reason to prefer your way
Thank you, Sarah!
Yes, unlist() looks like it will do just what I need. Thank you.
I took a different tack. I'd changed the function returning A to coerce the
row from the data.frame using as.numeric(). Any reason to prefer your way
or mine?
thanks again,
Nick
On Tue, May 1, 2012 at 2:08 PM, S
Hi Nick,
On Tue, May 1, 2012 at 1:56 PM, Nick Switanek wrote:
> Thank you, Steve and Sarah, for your swift replies.
>
> I didn't know about dput(). class() returns "matrix" for A, B, and C, but
> here:
>
>> class(A)
> [1] "matrix"
>> class(B)
> [1] "matrix"
>> dput(A)
> structure(list(1239814462,
Thank you, Steve and Sarah, for your swift replies.
I didn't know about dput(). class() returns "matrix" for A, B, and C, but
here:
> class(A)
[1] "matrix"
> class(B)
[1] "matrix"
> dput(A)
structure(list(1239814462, 1239814601, 14349, 3, 4, 0, 12, 46601,
17801, 12401, 106001), .Dim = c(1L, 1
Hi,
On Tue, May 1, 2012 at 11:52 AM, Nick Switanek wrote:
> Good morning,
>
> I'm running into trouble rbind-ing numeric matrices with differing numbers
> of rows. In particular, there seem to be issues whenever a one-row numeric
> matrix is involved.
>
> Assume A is a numeric matrix with 1 row a
Hi Nick,
We absolutely need a reproducible example, with code and data, to be
able to help you.
Because otherwise I can't replicate your problem:
> A <- matrix(1:5, nrow=1, ncol=5)
> B <- matrix(6:20, nrow=3, ncol=5)
> C <- rbind(A, B)
> A
[,1] [,2] [,3] [,4] [,5]
[1,]1234
Good morning,
I'm running into trouble rbind-ing numeric matrices with differing numbers
of rows. In particular, there seem to be issues whenever a one-row numeric
matrix is involved.
Assume A is a numeric matrix with 1 row and Y columns and B is a numeric
matrix with X rows and Y columns. Let C
7 matches
Mail list logo