[R] sorting table output

Stefan Evert stefan.evert at uos.de
Thu Oct 22 00:24:38 CEST 2009


> I would like to have the output sorted in descending order by "height"
> or frequency.
>
> But when I do the following:
>
>> rev(table(xx))
> xx
> T  G  C  A
> 15 10 12 13
>>


Err, I guess you meant to write

	sort(table(xx))

here?

Cheers,
Stefan




More information about the R-help mailing list