Skip to content

Commit

Permalink
namespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Jul 15, 2024
1 parent b44b93e commit 0750e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ importFrom(grDevices,dev.off)
importFrom(grDevices,pdf)
importFrom(graphics,rug)
importFrom(stats,deltat)
importFrom(stats,is.mts)
importFrom(stats,is.ts)
importFrom(stats,ts)
4 changes: 2 additions & 2 deletions R/ACQ4_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spike_times_folder <- function(base_folder,experiment_type,file_extension, thres
#' @param ...
#'
#' @return A \code{ts} or \code{mts} object
#' @importFrom stats deltat is.ts ts
#' @importFrom stats deltat ts
#' @export
#'
#' @examples
Expand All @@ -98,7 +98,7 @@ acq4h52ts <- function(files, name='data', bit64conversion='double', channel=2, .
ts(tracelist[[1]], deltat = deltat, start=0)
}

#' @importFrom stats is.ts
#' @importFrom stats is.ts is.mts
downsample_ts <- function(x, n, ...) {
stopifnot(is.ts(x))
dx=if(is.mts(x)) as.matrix(x) else as.vector(x)
Expand Down

0 comments on commit 0750e12

Please sign in to comment.