Re: [R] Date Format

From: Don MacQueen <macq_at_llnl.gov>
Date: Wed 12 Jul 2006 - 15:01:05 EST

If I understand your question correctly, then my suggestion is to try

   table( format(datetest), other.variable) instead of

   table(datetest, other.variable)

-Don

At 4:23 PM +0000 7/11/06, pierre clauss wrote:
>Hi everybody,
>I need your precious help for, I think, a simple request, but I do
>not manage to solve this.
>
>When I use a "table" function with dates in the rows, the rows are
>coerced to number after the table function.
>
>So I need to transform the row names into date format. But I do not manage.
>
>Therefore, for an example, I manage to write this :
>
>datetest<-"06/01/2001"
>datetest<-as.Date(datetest,"%d/%m/%Y")
>datetest<-as.numeric(datetest)
>
>to get 11328.
>
>But I do not obtain the inverse tranformation :
>
>datetest<-as.Date(datetest,"%d/%m/%Y")
>
>How do we get this please ?
>
>Thanks a lot for your solution.
>Pierre.
>
>
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>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

-- 
---------------------------------
Don MacQueen
Lawrence Livermore National Laboratory
Livermore, CA, USA

______________________________________________
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 Wed Jul 12 15:09:13 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 12 Jul 2006 - 16:17:37 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.