R/prepare_names.R

Defines functions prepare_names

prepare_names <-
  function(Names, Ids){
    if (is.null(Names)){
      return(substr(Ids, 1, nchar(Ids)-4))
    } else{
      if (length(Names) == length(Ids)){
        return(Names)
      } else{
        stop("Error. Length of Names vector and length of Ids vector not equal")
      }
    }
  }
JuliaWinchester/auto3dgm-fork documentation built on May 7, 2019, 12:05 p.m.