Re: [R] excluding on element from a list

2010-05-24 Thread Daisy Englert Duursma
Thanks for your help and for the info on the website. I did not know what to call regular expressions and so I could not search for them. Cheers! d On Mon, May 24, 2010 at 7:08 PM, wrote: >> I am making a list of all the files in a folder and I want to exclude >> one file called "proj.current".

Re: [R] excluding on element from a list

2010-05-24 Thread Jim Lemon
On 05/24/2010 05:40 PM, Daisy Englert Duursma wrote: Dear List, I am making a list of all the files in a folder and I want to exclude one file called "proj.current". This is the 31st file in a folder. Currently I use the command: tdirs<- list.files(pattern="proj.")[-31] However I would like t

[R] excluding on element from a list

2010-05-24 Thread Daisy Englert Duursma
Dear List, I am making a list of all the files in a folder and I want to exclude one file called "proj.current". This is the 31st file in a folder. Currently I use the command: tdirs <- list.files(pattern="proj.")[-31] However I would like to exclude it based on its name and not the position.