[R] Operator > and <
jrkrideau at yahoo.ca
Wed Jul 25 14:50:10 CEST 2007
mm <- matrix(1:9, nrow=3) ; mm
subset(mm[,1],mm[,1] <3) # Note I used 3 not 2 here.
Have a look at some of the introductory documents on
the R site ( Contributed documents under OTHER in the
documentation). They should answer a lot of your basic
questions like this.
Documents by Lemon, Maindonald and Verzani are good
places to start.
Also the Introduction to R is useful.
--- Yann Mauon <yann.mauron at genebio.com> wrote:
> I'am new to the R world and have a lot of question
> but the first is : How to
> deal with <> opertor in table objects? (Or how to
> deal with <> in
> general...) I explain my problem.
> I read a file with the read.table expression. I then
> obtain a matrix. I read
> the first line for example with the commande
> data[,1]. Then I would like to
> select only the element in this line that are
> greater than 2. Is there an
> elegant way to achieve that ?
> Thanks by advance...
> View this message in context:
> Sent from the R help mailing list archive at
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help