Date selection on TimeDataFrame can be used for value replacement.
Recursive replacement is enabled for TimeDataFrame.
Bug fixed :
in RegularTimeIntervalDataFrame some extra rows could be added where not required.
Dates selection on TimeInstantDataFrame did not work. Bug fixed.
Data extraction on Time*DataFrame now can be done directly by using date (POSIXct or suitable character strings) :
data['yyyy-mm-dd' , 'yyyy-mm-dd']
data['yyyy-mm-dd' , ]
data[ , 'yyyy-mm-dd'] data['yyyy-mm-dd tz' , ]
data['yyyy-mm-dd hh:mm:ss' , ]
data['yyyy-mm-dd hh:mm:ss tz' , ]
v1.5.2 of timetools is released.
It introduces:
See README for details.
The algorithm 'changeSupport' methods has been dispatched into 'split' and 'tapply' methods. Those two types of methods are more user friendly to use since they correspond to function available in the base package.
For backward compatibility, 'changeSupport' are still defined but now are simply wrapper to 'tapply' methods. Be aware that default values of arguments are not necessarily equivalent between 'changeSupport' and 'tapply'.... read more
a split method for signature(ANY,POSIXst) has been added (actually it is a shortcut for "split(x, as.numeric(f))" where f is a POSIXst)
definition of split methods have been gathered in a unique file
definition of changeSupport methods have been gathered in a unique file
Here is a summary of new features :
* 'subtime' class has been replaced by 'POSIXst' class.
* use 'POSIXst' methods to define instance of this class.
* SubtimeDataFrame now rely on 'POSIXst' objects.
* functions 'year', 'month', 'minute', 'second', etc. are now wrappers for the 'POSIXst' constructor.
* new methods have been added for 'POSIXctp' and 'POSIXcti' objects (tail, head, summary, split, match, %in%, unique)
* 'natural' mathematical operations between POSIXst (subtimes), POSIXctp (time periods) and POSIXcti (time intervals) are available.
Source control of the timetools package has been moved from subversion to git.
For 'subtime' functions (and associated), a 'first.day' argument is added. It indicates the first day of week in case of 'wday' subtime.
A 'lapply' function is added for TimeIntervalDataFrame, TimeInstantDataFrame and SubtimeDataFrame.
Plot functions for TimeIntervalDataFrame, TimeInstantDataFrame and SubtimeDataFrame return (invisibly) params used for the plot.