wxx3dodu
2012-Jul-01 02:52 UTC
[R] Batch file rename basing on a look up table need help_New to R_A little bit complicated
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.
Rui Barradas
2012-Jul-01 10:03 UTC
[R] Batch file rename basing on a look up table need help_New to R_A little bit complicated
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. >
Possibly Parallel Threads
- ssh/scp at Redhat Enterprise 3 (2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i686 i386 GNU/Linux)
- [Bug 124] Terminal hangs when data is streaming to it...
- Problem with an older VB program
- Faxing with Asterisk 1.8.4 & T.38
- Why do histogram bars vary their width?