changed a couple of lines that produced vectors so that they produce  a DF. Allows the function to work with do function in dplyr, which expects a df.
updated version
updated version and latest bug fixes
spacing
updated to work with do from dply package
updated to work with dply package
updated to work with dply package, which requires a df rather than a vector with call to strftime function.
updated date and version