Re: [R] Iteration through a list in R

2013-03-01 Thread MacQueen, Don
I suppose you have your filenames stored in a character vector, which I will name myfiles. (Within R, it is not a list; lists have a special structure). There is no such thing as a tab separated matrix in R. tab separated would refer to the file, I presume. for (nm in myfiles) { tmpdat -

[R] Iteration through a list in R

2013-02-28 Thread Sahana Srinivasan
Hello :) I'm just starting out with R and would appreciate your help with a couple of problems I am running into. I have used Sys.glob to get a list of all filenames having a particular file extension (in my case, *.txt) I would now like to use this list in the following manner: I would like to

Re: [R] Iteration through a list in R

2013-02-28 Thread Bert Gunter
Have you read An Introduction to R (ships with R) or other of the many web tutorials. If not, please do so before posting. -- Bert On Thu, Feb 28, 2013 at 4:30 AM, Sahana Srinivasan sahanasrinivasan...@gmail.com wrote: Hello :) I'm just starting out with R and would appreciate your help with a

Re: [R] Iteration through a list in R

2013-02-28 Thread Bert Gunter
1. I have forwarded this to the list in order to increase your chance of getting a response. I hope that is OK. 2. I would have thought that by putting in the effort to understand the tutorial is how a complete beginner advances beyond that stage. Cheers, Bert On Thu, Feb 28, 2013 at 1:43 PM,

Re: [R] Iteration through a list in R

2013-02-28 Thread David Winsemius
On Feb 28, 2013, at 4:30 AM, Sahana Srinivasan wrote: Hello :) I'm just starting out with R and would appreciate your help with a couple of problems I am running into. You do need to work through the examples in Introduction to R I have used Sys.glob to get a list of all filenames having a