R/utils.R

Defines functions projection_name

Documented in projection_name

#' Get internal name of this projection
#' 
#' Get name of projection given PESEL & kurtosis.
#' 
#' @param projection,PESEL,kurt_quantile See \code{\link{pscrub}}.
#' 
#' @return The name of the projection 
#'
#' @keywords internal
projection_name <- function(projection, PESEL, kurt_quantile){
  if (!PESEL) { projection <- paste0(projection, "2") }
  if (kurt_quantile > 0) { 
    projection <- paste0(projection, "_kurt")
  }
  projection
}

Try the fMRIscrub package in your browser

Any scripts or data that you put into this service are public.

fMRIscrub documentation built on Oct. 25, 2023, 9:07 a.m.