[R] importing multiple file form folder
Nicolas Iderhoff
nicolasiderhoff at googlemail.com
Mon May 28 22:07:55 CEST 2012
Hi,
if you're on a mac, I would recommend Automator. If you're on unix I would recommend a handy bash script with regex. And on windows.. I don't know.. you could do regex in R, couldn't you?
Am 28.05.2012 um 21:02 schrieb mpavlic:
> Hi all,
>
> I have a set of files (which is growing) in a folder. The files are text
> files...
> The form of files is such :
>
>
> ...with numbers for Length (m) going up to 2000 ...
> Anyway...i just need the data from first two columns (length (m) and
> Temperature (C)), and no data before that...
>
> This Lenght (m) values are always the same. My final dataset should lokk
> like this :
> column 1 as Length(m) ; column 2 as Temperature from first file ; column3
> as temperature from second file...and so on...
>
> I know how to import this manualy, but can seem to find a way to automate
> it...the problem is that the amout of files will be growing for quite quite
> some time, so automation is necessary.
>
> Any help is greatly apreciated.
> m
>
> --
> View this message in context: http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list