Convert object to bbi_{.model_type}_model

as_model(.obj)

# S3 method for bbi_nonmem_model
as_model(.obj)

# S3 method for babylon_process
as_model(.obj)

Arguments

.obj

Object to convert to bbi_{.model_type}_model

Methods (by class)

  • bbi_nonmem_model: Simply passes through the bbi_nonmem_model object.

  • babylon_process: Takes a babylon_process object and converts it to the corresponding bbi_nonmem_model object. Only works if YAML and model file are in the same directory with the same name and different file extensions.