Skip to content

Commit

Permalink
sanitised i arguments (ready to release v0.6.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
gisler committed Jul 11, 2020
1 parent 046accb commit b7d3eb6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: DTSg
Type: Package
Title: A Class for Working with Time Series Based on 'data.table' and 'R6' with
Largely Optional Reference Semantics
Version: 0.5.0.9000
Version: 0.6.0
Authors@R: person("Gerold", "Hepp", email = "ghepp@iwag.tuwien.ac.at", role = c("aut", "cre"))
Description: Basic time series functionalities such as listing of missing
values, application of arbitrary aggregation as well as rolling (asymmetric)
Expand Down Expand Up @@ -36,6 +36,6 @@ Suggests:
rmarkdown,
runner (>= 0.3.5),
tinytest
RoxygenNote: 7.1.0
RoxygenNote: 7.1.1
Roxygen: list(r6 = FALSE)
VignetteBuilder: knitr
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## DTSg v0.5.0.9000
## DTSg v0.6.0

* Added `subset` method: allows for filtering rows and/or selecting columns of a `DTSg` object
* Added `setCols` method: allows for setting the values of columns of, adding columns to and/or removing columns from a `DTSg` object
* Added `[` extract operator: acts as a shortcut for the `getCol` method
* Added examples to the documentation of the `colapply` method showing how to calculate moving averages with the help of the `runner` package instead of the `rollapply` method
* `aggregate` method can benefit from `data.table`'s *GForce* optimisation now if its `fun` argument is provided with a character vector specifying summary functions
* `aggregate` method can benefit from `data.table`'s *GForce* optimisation now when its `fun` argument is provided with a character vector specifying summary functions
* Greatly sped up `nas` method
* Temporal aggregation level functions supplied to the `funby` argument of the `colapply` method are not forced to return a `POSIXct` timestamp any longer. They are, however, forced to return an atomic mode (the same goes for the `subset` method).
* `getCol` method now is capable of also querying the *.dateTime* column
Expand Down
4 changes: 2 additions & 2 deletions R/ClassDTSg.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ DTSg <- R6Class(
determineFilter = function(i, expr) {
tryCatch(
{
if (!testMultiClass(i, c("integer", "numeric")) &&
!is.list(i) && !is.expression(i)) {
if (!testMultiClass(i, c("integer", "numeric")) && !is.expression(i) &&
!is.character(i) && !is.list(i)) {
i <- expr
}

Expand Down
File renamed without changes.

0 comments on commit b7d3eb6

Please sign in to comment.