Re: [R] Create Strings of Column Id's

2007-07-30 Thread Tom.O
Great, That did the trick,thanks. regards Tom jholtman wrote: Is this what you want: paste(-, paste(colnames(MyMatrix)[COL], collapse='-'), sep='') [1] -E-T On 7/26/07, Tom.O [EMAIL PROTECTED] wrote: Does anyone know how this is don? I have a large matrix where I extract

Re: [R] Create Strings of Column Id's

2007-07-26 Thread jim holtman
Is this what you want: paste(-, paste(colnames(MyMatrix)[COL], collapse='-'), sep='') [1] -E-T On 7/26/07, Tom.O [EMAIL PROTECTED] wrote: Does anyone know how this is don? I have a large matrix where I extract specific columns into txt files for further use. To be able to keep track of

[R] Create Strings of Column Id's

2007-07-26 Thread Tom.O
Does anyone know how this is don? I have a large matrix where I extract specific columns into txt files for further use. To be able to keep track of which txt files contain which columns I want to name the filenames with the column Id's. The most basic example would be to use an for() loop