Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] part of name to Date

Jonathan Charrier

2005-03-01

Replies:

hi everybody,

i try to extract a part of name to a date :

like : "VGT1_VGT2_CONTR_B020030401.H0V0.MIR"   to   "20030401"

but the beginning of the files changes

i have a list of files:

[,1]                    
[1,] "VGT1_CONTR_B020020301.H0V0.MIR"                      
[2,] "VGT1_VGT2_CONTR_B020020611.H0V0.MIR"
[3,] "VGT1_VGT2_CONTR_B020030401.H0V0.MIR"
[4,] "VGT1_VGT2_CONTR_B020030711.H0V0.MIR"
[5,] "VGT1_VGT2_CONTR_B020031211.H0V0.MIR"

i try the function "get()" and "assign()" but without succeed

i know it's easy in C but in R i don't know the way


if you have an idee


thanks ,

Jonathan Charrier

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.