Re: [R] Vector to Matrix transformation

2007-01-24 Thread Shubha Vishwanath Karanth
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

Re: [R] Vector to Matrix transformation

2007-01-24 Thread talepanda
: 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

[R] Vector to Matrix transformation

2007-01-23 Thread Shubha Vishwanath Karanth
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...

Re: [R] Vector to Matrix transformation

2007-01-23 Thread Peter Dalgaard
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?

Re: [R] Vector to Matrix transformation

2007-01-23 Thread Dimitris Rizopoulos
, 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

Re: [R] Vector to Matrix transformation

2007-01-23 Thread Chuck Cleland
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

[R] vector to matrix transformation

2004-12-03 Thread Gwenael Jacob
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

Re: [R] vector to matrix transformation

2004-12-03 Thread Sean Davis
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

Re: [R] vector to matrix transformation

2004-12-03 Thread Petr Pikal
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

RE: [R] vector to matrix transformation

2004-12-03 Thread Andy Bunn
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

RE: [R] vector to matrix transformation

2004-12-03 Thread Gabor Grothendieck
) 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