Re: [R] basics: how do you sort a table?

About this list Date view Thread view Subject view Author view Attachment view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Tue 18 May 2004 - 04:30:22 EST


Message-id: <Pine.LNX.4.44.0405171922260.8439-100000@gannet.stats>

On Mon, 17 May 2004, Monica Palaseanu-Lovejoy wrote:

> This may be a very basic question but it seems i cannot figure it
> out does not matter what.
>
> how do you sort a table (ascending or descending) after the values
> in one particular column? I want to do something like the sort
> function in Xcel.

Well, what is `Xcel' and what is a `table'? What Excel calls sheets are
usually represented as data frames in R, and ?order will tell you how to
do this.

help.search("sort") would surely have got you there -- did you try it?

> Also, is there any other plot function that accepts log for y axes
> like the parplot2() from gregmisc? Thanks for the tip Marc about
> barplot2. very useful indeed!

Look at `log' under ?par. Almost all basic plot methods do. (It seems an
oversight that barplot does not.) This is in an `Introduction to R', for
example -- have you read that yet?

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST