Skip to content
Prev 306497 / 398506 Next

Start and End day of a month

On Thu, Sep 27, 2012 at 3:05 PM, arun <smartpink111 at yahoo.com> wrote:
That code is very difficult to follow.  This is much clearer:

dat1 <- data.frame(inputDate=Dt,
  startDate=do.call(c,lapply(Dt, firstof, 0, 0, 1)),
  endDate=do.call(c,lapply(Dt, lastof, 23, 59, 59)))

--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com