How to suppress the recycling of items in a matrix..instead NA can be
filled.
-Original Message-
From: Chuck Cleland [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 8:00 PM
To: Shubha Vishwanath Karanth
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] Vector to Matrix
: Tuesday, January 23, 2007 8:00 PM
To: Shubha Vishwanath Karanth
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] Vector to Matrix transformation
Shubha Vishwanath Karanth wrote:
Hi R,
I have a vector V1 of unknown length, say n. I need to convert this
into
a matrix C of row size=5
Hi R,
I have a vector V1 of unknown length, say n. I need to convert this into
a matrix C of row size=5, and accordingly the column should be updated.
I tried with:
C=as.matrix(V1,5,n/5)
But it is not working...Could somebody help me on this?
Thanks in advance...
Shubha Vishwanath Karanth wrote:
Hi R,
I have a vector V1 of unknown length, say n. I need to convert this into
a matrix C of row size=5, and accordingly the column should be updated.
I tried with:
C=as.matrix(V1,5,n/5)
But it is not working...Could somebody help me on this?
, 2007 3:10 PM
Subject: [R] Vector to Matrix transformation
Hi R,
I have a vector V1 of unknown length, say n. I need to convert this
into
a matrix C of row size=5, and accordingly the column should be
updated.
I tried with:
C=as.matrix(V1,5,n/5)
But it is not working...Could
Shubha Vishwanath Karanth wrote:
Hi R,
I have a vector V1 of unknown length, say n. I need to convert this into
a matrix C of row size=5, and accordingly the column should be updated.
I tried with:
C=as.matrix(V1,5,n/5)
But it is not working...Could somebody help me on this?
You
Dear,
Some analysis (linear regression) can only be
done from a vectorized dataset whereas others
require a matrix (Mantel tests). I use the two
analyses and thus need to format my data in
matrix and vector. I spent some time trying to
solve the problem and I just gave up. Did anyone
knows
On Dec 3, 2004, at 5:39 AM, Gwenael Jacob wrote:
Dear,
Some analysis (linear regression) can only be done from a vectorized
dataset whereas others require a matrix (Mantel tests). I use the two
analyses and thus need to format my data in matrix and vector. I spent
some time trying to solve the
On 3 Dec 2004 at 11:39, Gwenael Jacob wrote:
Dear,
Some analysis (linear regression) can only be
done from a vectorized dataset whereas others
require a matrix (Mantel tests). I use the two
analyses and thus need to format my data in
matrix and vector. I spent some time trying to
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gwenael Jacob
Sent: Friday, December 03, 2004 5:40 AM
To: [EMAIL PROTECTED]
Subject: [R] vector to matrix transformation
Dear,
Some analysis (linear regression) can only be
done from a vectorized dataset whereas others
) is a vector formed by stringing out
the columns one after another. as.vector is similar.
Date: Fri, 3 Dec 2004 11:39:57 +0100
From: Gwenael Jacob [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [R] vector to matrix transformation
Dear,
Some analysis (linear regression) can only be
done
11 matches
Mail list logo