Skip to content

Commit

Permalink
docs: small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gisler committed Jun 8, 2022
1 parent 0ede591 commit 8b40b9b
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Column names can often now be additionally specified by a character string containing either comma separated column names, for example, `"x,y,z"`, or the start and end column separated by a colon, for example, `"x:z"`
* Fixed a bug in `interpolateLinear()` causing partial last observation carried forward behaviour when its `roll` argument was specified smaller than the size of the gap to be interpolated
* Fixed a bug in `interpolateLinear()` causing partial interpolation in certain cases when its `roll` argument was specified smaller than the size of the gap to be interpolated
* Slightly improved documentation

# DTSg v1.0.0

Expand Down
30 changes: 29 additions & 1 deletion R/Swrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#' @seealso [`S3Methods`], [`R6::R6Class`]
#'
#' @examples
#' # generate an S3 wrapper method for 'alter' of 'DTSg'
#' # generate an S3 wrapper method for 'alter()' of 'DTSg'
#' alter.DTSg <- S3WrapperGenerator(
#' R6Method = DTSg$public_methods$alter
#' )
Expand Down Expand Up @@ -431,6 +431,9 @@ cols <- function(x, ...) {
#' ## R6 method
#' x$cols(class = "numeric")
#'
#' ## 'names()' is a "hidden" R6 alias for 'cols()'
#' x$names(class = "numeric")
#'
#' ## S3 method
#' cols(x = x, class = "numeric")
#'
Expand Down Expand Up @@ -826,6 +829,12 @@ rowaggregate <- function(x, ...) {
#' fun = list(mean = mean, sd = sd)
#' )$print()
#'
#' ## 'raggregate()' is a "hidden" R6 alias for 'rowaggregate()'
#' x$raggregate(
#' resultCols = "flow",
#' fun = list(mean = mean, sd = sd)
#' )$print()
#'
#' ## S3 method
#' print(rowaggregate(
#' x = x,
Expand Down Expand Up @@ -867,6 +876,12 @@ rowbind <- function(x, ...) {
#' flow[1501:.N, ]
#' )$print()
#'
#' ## 'rbind()' is a "hidden" R6 alias for 'rowbind()'
#' x$rbind(
#' list(flow[1001:1500, ], DTSg$new(values = flow[501:1000, ])),
#' flow[1501:.N, ]
#' )$print()
#'
#' ## S3 method
#' print(rowbind(
#' x = x,
Expand Down Expand Up @@ -913,6 +928,12 @@ setColNames <- function(x, ...) {
#' values = "River Flow"
#' )$print()
#'
#' ## 'setnames()' is a "hidden" R6 alias for 'setColNames()'
#' x$setnames(
#' cols = "flow",
#' values = "River Flow"
#' )$print()
#'
#' ## S3 method
#' print(setColNames(
#' x = x,
Expand Down Expand Up @@ -965,6 +986,13 @@ setCols <- function(x, ...) {
#' values = 100
#' )$print()
#'
#' ## 'set()' is a "hidden" R6 alias for 'setCols()'
#' x$set(
#' i = flow > 100,
#' cols = "flow",
#' values = 100
#' )$print()
#'
#' ## S3 method
#' print(setCols(
#' x = x,
Expand Down
2 changes: 1 addition & 1 deletion man/S3WrapperGenerator.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/cols.DTSg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/rowaggregate.DTSg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/rowbind.DTSg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/setColNames.DTSg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions man/setCols.DTSg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b40b9b

Please sign in to comment.