R/checkType.R

Defines functions checkType

checkType <- function(type) {
  type <- tolower(type)
  if(!(type %in% c("fa","ppca","un","unc","unconstrained"))) {
    stop("type must be: 'unc','fa', or 'ppca'")
  }
  type
}
aciobanusebi/s2fa documentation built on Aug. 7, 2021, 6:38 a.m.