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
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.
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