[R] table and getting rownames

merser@tiscali.dk merser at tiscali.dk
Tue Aug 17 14:14:18 CEST 2004


hi there
say that i have this table
>x<-table(adoc, oarb)
>x
               oarb
                      0   1
adoc
    ab                1   0
    am                5   1
    ba               14   1
    cc              271   3
    ch               87   2
    dz              362   6
    fl                7   0
    fs               84   2

is there an easy way to get the row names or row numbers of rows with
oarb==0
i.e. (ab, fl) or (1, 7)

regards soren




More information about the R-help mailing list