[R] question about date's

Jacques VESLOT jacques.veslot at cirad.fr
Mon Dec 12 13:19:44 CET 2005


do.call("rbind", strsplit(as.character(date.vector), "-"))


Richard van Wingerden a écrit :

>Hi,
>
>Given a frame with calendar date's:
>
>"2005-07-01", "2005-07-02","2005-07-03","2005-07-04","2005-07-05",etc.
>
>I want to extract the following from these dates:
>
>week number
>month number
>year number
>
>Any ideas how to accomplish this?
>
>Many thanks.
>
>Regards,
>Richard
>
>______________________________________________
>R-help at 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
>
>  
>




More information about the R-help mailing list