R/get_method.R

Defines functions get_method

get_method <- function(nlme7engineLines) {
  method <- "na"
  IDENGINEline <- nlme7engineLines[grep("IDENGINE", nlme7engineLines)]
  IDENGINENO <- unlist(strsplit(IDENGINEline, split = "\\W+"))[[2]]
  if (length(IDENGINENO) > 0) {
    method <- dplyr::case_when(
      IDENGINENO == 1 ~ "QRPEM",
      IDENGINENO == 2 ~ "IT2SEM",
      IDENGINENO == 3 ~ "FOCE-LB",
      IDENGINENO == 4 ~ "FO",
      IDENGINENO == 5 ~ "FOCE-ELS",
      IDENGINENO == 6 ~ "Naive-Poled"
    )
  }

  method
}

Try the Certara.Xpose.NLME package in your browser

Any scripts or data that you put into this service are public.

Certara.Xpose.NLME documentation built on April 3, 2025, 7:45 p.m.