s-news
[Top] [All Lists]

Re: R/S+ timeDate related question

To: Santosh <santosh2005@gmail.com>
Subject: Re: R/S+ timeDate related question
From: Martin Maechler <maechler@stat.math.ethz.ch>
Date: Wed, 30 Apr 2008 18:28:17 +0200
Cc: S-news <s-news@lists.biostat.wustl.edu>
In-reply-to: <816b5ce40804300852r4278da06xeebf467e8da61b4f@mail.gmail.com>
References: <816b5ce40804300852r4278da06xeebf467e8da61b4f@mail.gmail.com>
Reply-to: Martin Maechler <maechler@stat.math.ethz.ch>
>>>>> "S" == Santosh  <santosh2005@gmail.com>
>>>>>     on Wed, 30 Apr 2008 08:52:10 -0700 writes:

    S> Dear R/S+ ians!
    S> I would like to generate a sequence of time/date in R & S+ for simulation
    S> purposes instead of elapsed time. How do I generate a sequence of date &
    S> time? Is there a quick way to add a column of the sequenced "Date & 
Time" to
    S> a data frame?

    S> what are the equivalent functions of timeDate and unpaste in R?

The Rmetrics package  'fCalendar' has a "timeDate" class that
tries to be more or less S+ compatible.
It is on CRAN and hence just an

   install.packages("fCalendar", .....<maybe specify your CRAN mirror....)  
   library(fCalendar)

away.

unpaste() can be replaced by  strsplit() and similar, but I
don't know the details.

    S> Thanks much in advance!!
    S> Regards,
    S> Santosh

    S> [[alternative HTML version deleted]]


<Prev in Thread] Current Thread [Next in Thread>