Re: [R] part of name to Date

From: CARLOS ORTEGA <coforfe_at_gmail.com>
Date: Tue 01 Mar 2005 - 23:51:32 EST

Please check string manipulation functions: - substr
- strsplit

Regards,
Carlos Ortega

On Tue, 01 Mar 2005 13:36:00 +0100, Jonathan Charrier <jonathan.charrier@bordeaux.inra.fr> wrote:
> 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@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
___________________
Carlos Ortega
C/Donoso Cortés 47 - 6C
Madrid 28015
España

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Mar 01 23:59:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:38 EST