Re: [R] Looping multiple output values to dataframe

2009-02-13 Thread David Winsemius
?list files ... in particular the pattern argument -- David Winsemius On Feb 12, 2009, at 3:38 PM, Stropharia wrote: Thanks a lot Levi. Your code was much shorter and more elegant. With a few minor alterations I got this (see below) to work. Does anyone know if there is a way to automa

Re: [R] Looping multiple output values to dataframe

2009-02-12 Thread Stropharia
Thanks a lot Levi. Your code was much shorter and more elegant. With a few minor alterations I got this (see below) to work. Does anyone know if there is a way to automate getting only the csv filenames in a folder (rather than the whole file path)? Or to automate extracting the file names from t

Re: [R] Looping multiple output values to dataframe

2009-02-12 Thread Levi Waldron
Stropharia wrote: # START R-CODE--- filenames <- Sys.glob("/Users/Desktop/Test/*.csv") # get names of files to process # use * to get all variables <- data.frame(1:length(filenames)) # preallocate assuming multiple values f

[R] Looping multiple output values to dataframe

2009-02-12 Thread Stropharia
Dear R users, I have various vector geometry operations to perform on 3-D coordinate data located on multiple (500+) csv files. The code I have written for the calculations works just fine. I have written a 'for' loop to automate the task of extracting the coordinates from the files and perform t