You can't try this also:
split(x, count > 0)
On Tue, Jul 6, 2010 at 3:39 AM, Gundala Viswanath wrote:
> Suppose I have two vectors of same dimensions:
>
>x <-c(0.49534,0.80796,0.93970,0.8)
>count <-c(0,33,0,4)
>
> How can I group the vectors 'x' into two vectors:
>
> 1. Vector
Subject: [R] Conditional Splitting a Vectors into Two Vectors
>
> Suppose I have two vectors of same dimensions:
>
> x <-c(0.49534,0.80796,0.93970,0.8)
> count <-c(0,33,0,4)
>
> How can I group the vectors 'x' into two vectors:
>
> 1.
On 2010-07-06 0:39, Gundala Viswanath wrote:
Suppose I have two vectors of same dimensions:
x<-c(0.49534,0.80796,0.93970,0.8)
count<-c(0,33,0,4)
How can I group the vectors 'x' into two vectors:
1. Vector `grzero` that contain value in x with `count` value greater
than 0 and
Suppose I have two vectors of same dimensions:
x <-c(0.49534,0.80796,0.93970,0.8)
count <-c(0,33,0,4)
How can I group the vectors 'x' into two vectors:
1. Vector `grzero` that contain value in x with `count` value greater
than 0 and
2. Vector `eqzero` with value in x with `cou
4 matches
Mail list logo