model_paste0: Flexibly process NONMEM file names

View source: R/model_paste0.R

model_paste0R Documentation

Flexibly process NONMEM file names

Description

model_paste0() can take either an integer, the name of a model as a string, or a complete file name and returns a model name with the desired file extension.

Usage

model_paste0(runno, ext = "")

Arguments

runno

Either a NONMEM model name (with or without file extension), or the number of a NONMEM run as an integer.

ext

Optional. A file extension (e.g. ".lst") to append to the model name.

Value

A string corresponding to the name of a NONMEM file.

Author(s)

Sandy Floren

Examples

# Stripping a NONMEM file name to just the model name
model_paste0("run46.mod")

# Constructing a run name from a run number
model_paste0(46)

# Changing the file extension
model_paste0("run46.mod", ext = ".lst")


saviclab/savictools documentation built on Dec. 7, 2023, 11:56 p.m.