R/load_atlas.R

Defines functions load_atlas

Documented in load_atlas

#' Load atlas
#'
#' https://adv-r.hadley.nz/s3.html
#'
#' @param name character string of atlas name
#' @param space character string of atlas name
#'
#' @return object of type atlas
#' @export
#'
#' @examples
#' atlas <- load_atlas(name = "schaefer2018_17_200", space = "fsaverage5")
#' atlas
load_atlas <- function(name, space) {
  get(paste0(name, "_", space))
}
mcfreund/mfutils documentation built on Feb. 6, 2022, 4:57 a.m.