Yes, paraphrasing Murphy I can say of myself: "Nothing seems to be able to stop a stupid thought in its pathway from the brain to the keyboard". :-)
Sorry once again and thank for your patience. Stefano > -----Messaggio originale----- > Da: Prof Brian Ripley [mailto:[EMAIL PROTECTED] > Inviato: venerd� 23 luglio 2004 16.30 > A: Guazzetti Stefano > Cc: Luis Rideau Cruz; [EMAIL PROTECTED] > Oggetto: Re: R: [R] retrieve rows from frame assuming criterion > [corrected] > > > On Fri, 23 Jul 2004, Guazzetti Stefano wrote: > > > sorry for my previus (WRONG) > > answer, as someone already pointed out > > a solution could be > > > > subset(data, PUNTAR==c("IX49","IX48")) > > That's still wrong. You want PUNTAR %in% c("IX49","IX48"). Using == > recycles entries, so it tests the first element against > "IX49", the second > against "IX48", the third against "IX49" .... > > > > -----Messaggio originale----- > > > Da: Guazzetti Stefano > > > Inviato: venerd� 23 luglio 2004 15.55 > > > A: 'Luis Rideau Cruz'; [EMAIL PROTECTED] > > > Oggetto: R: [R] retrieve rows from frame assuming criterion > > > > > > > > > Assuming your data.frame is called "data" > > > > > > data[data$PUNTAR==c("IX49","IX48"),] > > > > > > is probably what you want > > > > > > Stefano > > -- > Brian D. Ripley, [EMAIL PROTECTED] > 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 > > ______________________________________________ [EMAIL PROTECTED] 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
