R/vmAvg.R

Defines functions vmAvg

Documented in vmAvg

#' Get voltage average from 0 for sweeps
#'
#'
#' @param x numeric vector
#' @param r range of samples to calculate mean from
#'
#' @export
vmAvg <- function(x, r = 1:1000) {

    zD <- mean(x[r])

    return(zD)

}
NRSC/nphys documentation built on Nov. 13, 2024, 2:12 a.m.