Re: [R] regarding filtering the data

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri 14 Jul 2006 - 14:35:55 EST

  1. read.csv just calls read.table. Enter this into R to see its source code:

   read.csv

2. See ?subset . For example using the builtin swiss data frame:

   subset(swiss, Fertility < Agriculture)

or

   swiss[swiss$Fertility < swiss$Agriculture, ]

On 7/14/06, gyadav@ccilindia.co.in <gyadav@ccilindia.co.in> wrote:
>
> Hi all
>
> a very happy greeting to you all.
> i have just joined the list, i am newbie in R and this is my first message
> ( before this i was a member of Linux kernel mailing list) and hence i
> woulk like to add that i know how to behave in the mailing lists.
>
> I have a data something like this which i am reading from a csv file using
> read.table (Is there any difference between read.csv and read.table as i
> can give sep="," in both of them).
>
> x=[1,2,3,4]
>
> and permutations are
> 1,2,3,4
> 2,1,3,4
> 3,1,2,4
> 4,1,2,3
> etc.
>
> actually these are the permutations where n = 4 and k = 1 to 4 using the
> combs function. Well I want to filter only the data in which the first
> value is smaller that second, second value is smaller than
> third...extending the logic to all the k ( whatever is its value at that
> time). please help me in this regards



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 14 14:39:12 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 14 Jul 2006 - 18:14:12 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.