[R] Indexing dataframe

2004-09-09 Thread Jacques VESLOT
I am sorry to ask such question, but I can't find a solution... I have a dataframe 'd2004' and I want to remove two columns: 'd2004$concentration' and 'd2004$stade. I could do it just as follows: names(d2004) [1] Localite Date parcelle maille presence.plant

Re: [R] Indexing dataframe

2004-09-09 Thread Thomas Petzoldt
Jacques VESLOT wrote: I am sorry to ask such question, but I can't find a solution... I have a dataframe 'd2004' and I want to remove two columns: 'd2004$concentration' and 'd2004$stade. d2004$concentration - NULL d2004$stade - NULL Hope it helps! Thomas P.

AW: [R] Indexing dataframe

2004-09-09 Thread TEMPL Matthias
Hi, Use Newdata - subset(d2004, select=-c(concentration,stade)) See ?subset for details Best, Matthias -Ursprüngliche Nachricht- Von: Jacques VESLOT [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 09. September 2004 12:38 An: [EMAIL PROTECTED] Betreff: [R] Indexing dataframe