R/formula_terms.R

Defines functions formula_terms

formula_terms <- function(formula_str){  
    valid_terms <- trimws(strsplit(formula_str,"[.]|[~]|[+]|[*]")[[1]])
    valid_terms <- unique(valid_terms[valid_terms!=""])
    return(valid_terms)
}
RajLabMSSM/echoplot documentation built on Oct. 24, 2023, 2:41 a.m.