[R] Change directory to implement same programes
Henrique Dallazuanna
wwwhsd at gmail.com
Wed Sep 30 13:34:55 CEST 2009
Perhaps Sys.glob can help you.
See ?Sys.glob
On Wed, Sep 30, 2009 at 8:19 AM, Tammy Ma <metal_licaling at live.com> wrote:
>
> How do I source a bunch of files in different directories in R?
>
>> From: metal_licaling at live.com
>> To: r-help at r-project.org
>> Date: Wed, 30 Sep 2009 13:45:34 +0300
>> Subject: [R] Change directory to implement same programes
>>
>>
>> HI, R-Users,
>>
>> I have one problem:
>>
>> I have written the the programs which process all file in one directory: for example:
>>
>> setwd("C:/Documents and Settings/lma/My Documents/Vappu-saved/Log") as the start.
>> ..........
>>
>> But I have many folders like "Vappu-saved" and there are a lot of files in each directory. What I want is using the same program what I write for the above directory
>> to autimatically change directory address to implement the above programs what I wrote. How do I realize it?
>>
>> Thanks a lot.
>>
>> Regards,
>> Lingyi
>>
>> _________________________________________________________________
>> Windows Live™: Keep your life in sync. Check it out!
>> http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
>> [[alternative HTML version deleted]]
>>
>
> _________________________________________________________________
> Show them the way! Add maps and directions to your party invites.
> http://www.microsoft.com/windows/windowslive/products/events.aspx
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list