use 'findInterval'
> x
X1 X2 X3 X4 X5 X6 X8 X13 X14 X17 X40
2 4 6 7 9 11 13 14 15 16 17
> findInterval(4.25, x)
[1] 2
> names(x)[2]
[1] "X2"
>
On Wed, Jun 17, 2009 at 10:19 PM, Germán Bonilla wrote:
> Hi all,
>
> I've got object *cumsumtab, *where the first row
> (1,2,3,
Hi all,
I've got object *cumsumtab, *where the first row (1,2,3,4,5,6,8,13,14,17,40)
are names (actually, categories), and the second row has numeric values.
> cumsumtab
1 2 3 4 5 6 8 13 14 17 40
2 4 6 7 9 11 13 14 15 16 17
I'm trying to find a way of finding to which category ( in *
2 matches
Mail list logo