Re: [R] Deleting multiple variables

2008-09-22 Thread Andrew Robinson
Mike, how about M_UC <- M_UC[,-(myvars[1]:myvars[2])] ? Andrew On Mon, Sep 22, 2008 at 11:04:34PM +0100, Michael Pearmain wrote: > Hi All, > i have searched the web for a simple solution but have been unable to find > one. Can anyone recommend a neat way of deleting multiple variable? > I see

[R] Deleting multiple variables

2008-09-22 Thread Michael Pearmain
Hi All, i have searched the web for a simple solution but have been unable to find one. Can anyone recommend a neat way of deleting multiple variable? I see, i need to use dataframe$VAR<-NULL to get rid of one variable, In my situation i need to delete all vars between two points. I've used the '