[R] Start and End day of a month
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Sep 27 17:33:20 CEST 2012
On Thu, Sep 27, 2012 at 1:21 PM, Rantony <antony.akkara at ge.com> wrote:
> Hi,
>
> Can anyone please help to get "StartDay" and "End-day of a particular month"
> with time ?
>
> For eg:- Input wil be "2012-09-27"
>
> i need to get output as given below
>
> StartDt <- "2012-09-01 00:00:01"
> EndDt <- "2012-09-30 23:59:59"
>
> - Thanks in advance
Look at xts::lastof().
Cheers,
Michael
More information about the R-help
mailing list