Re: [R] remove columns having a partial match name

2007-07-18 Thread jim holtman
DATA_OK <- DATA[-grep("^Start", names(DATA)),] On 7/18/07, João Fadista <[EMAIL PROTECTED]> wrote: > Dear all, > > I would like to know how can I retrieve a data.frame without the columns that > have a partial match name. Let´s say that I have a data.frame with 200 > columns and 100 of them have

Re: [R] remove columns having a partial match name

2007-07-18 Thread Henrique Dallazuanna
Hi, DATA_OK <- DATA[,-match("Start", names(DATA))] -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 18/07/07, João Fadista <[EMAIL PROTECTED]> wrote: > Dear all, > > I would like to know how can I retrieve a data.frame without the columns that > have a partial ma

[R] remove columns having a partial match name

2007-07-18 Thread João Fadista
Dear all, I would like to know how can I retrieve a data.frame without the columns that have a partial match name. Let´s say that I have a data.frame with 200 columns and 100 of them have the name "StartX", with X being the unique part for each column name. I want to delete all columns that ha