[R] Batch file rename basing on a look up table need help_New to R_A little bit complicated

Rui Barradas ruipbarradas at sapo.pt
Sun Jul 1 12:03:57 CEST 2012


Hello,

See

?file.rename

Hope this helps,

Rui Barradas

Em 01-07-2012 03:52, wxx3dodu escreveu:
> Hello, all
> I'm pretty new to R and I wish to accomplish the following task
>
> I have many files need to do this task. I simplify the situation to five
> files. Their names are
> 001
> 232
> 242
> 123
> 132
>
> I'd like to change the name of each file (column 1) to the name in column 2
> in the following table
> column1    column2
> 001              ewr
> 232              eda
> 242              gdg
> 123              sgs
> 132              ger
>
> I'm wondering if anyone could point out a way to do it.
> Thank you very much in advance!
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Batch-file-rename-basing-on-a-look-up-table-need-help-New-to-R-A-little-bit-complicated-tp4635015.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