Re: [R] algorithm that iteratively drops columns of a data-frame

2011-11-09 Thread Martin Batholdy
great, thank you both! On 09.11.2011, at 17:27, Jeff Newmiller wrote: > Try > > data[,!names(data) %in% names(col_means)] > > On Wed, 9 Nov 2011, Martin Batholdy wrote: > >> Dear R-Users, >> >> >> I have a problem with an algorithm that iteratively goes over a data.frame >> and exclude n-

Re: [R] algorithm that iteratively drops columns of a data-frame

2011-11-09 Thread Jeff Newmiller
Try data[,!names(data) %in% names(col_means)] On Wed, 9 Nov 2011, Martin Batholdy wrote: Dear R-Users, I have a problem with an algorithm that iteratively goes over a data.frame and exclude n-columns each step based on a statistical criterion. So that the 'column-space' gets smaller and sma

Re: [R] algorithm that iteratively drops columns of a data-frame

2011-11-09 Thread R. Michael Weylandt
Perhaps attach placeholder names to your columns and use those rather than indices? Michael On Wed, Nov 9, 2011 at 10:36 AM, Martin Batholdy wrote: > Dear R-Users, > > > I have a problem with an algorithm that iteratively goes over a data.frame > and exclude n-columns each step based on a stati