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)
}
bschilder/echoplot documentation built on Oct. 26, 2023, 6:55 p.m.