Re: [R] subset and "or" operator

2009-03-23 Thread Erich Neuwirth
subset(table, year %in% c(1995,1998,2000))-->table2 > Hello, > I'm trying to subset a dataframe where I have many observation taken in > different years. > I would like to subset the dataframe (in this example called "table") to get > a new dataframe containing only the > observation of year 19

[R] subset and "or" operator

2009-03-23 Thread lauramorg...@bluewin.ch
Hello, I'm trying to subset a dataframe where I have many observation taken in different years. I would like to subset the dataframe (in this example called "table") to get a new dataframe containing only the observation of year 1995, 1998 and 2000. I've tried to use subset and the or operator "