[R] logical to vector?

2012-03-07 Thread Ed Siefker
I am trying to use the coXpress function from the coXpress package. This function requires numerical vectors indicating which columns are in which group. The problem is, I can only figure out how to get a logical structure, not a numerical one. In other words, coXpress wants something like: 1:3

Re: [R] logical to vector?

2012-03-07 Thread Duncan Murdoch
On 07/03/2012 11:02 AM, Ed Siefker wrote: I am trying to use the coXpress function from the coXpress package. This function requires numerical vectors indicating which columns are in which group. The problem is, I can only figure out how to get a logical structure, not a numerical one. In

Re: [R] logical to vector?

2012-03-07 Thread Justin Haynes
?as.numeric as.numeric(c(TRUE, FALSE)) [1] 1 0 On Wed, Mar 7, 2012 at 8:02 AM, Ed Siefker ebs15...@gmail.com wrote: I am trying to use the coXpress function from the coXpress package.  This function requires numerical vectors indicating which columns are in which group. The problem is, I