R/trip_col.R

Defines functions trip_col

Documented in trip_col

#' Small (inefficient) function for extracting sample names associated with replicates
#'
#' @param x Vector of Sample names of entire flowSet
#' @param n Number of replicates
#' @keywords resampling, fcm
#' trip(x)

trip_col <- function(x, n = 3) {
  y = c()
  j = 1
  for (i in seq(1, length(x), by = n)) {
    y[j] = x[(i + n - 1)]
    j = j + 1
  }
  return(y)
}
rprops/Phenoflow_package documentation built on Sept. 22, 2020, 5:43 p.m.