nm_input | R Documentation |
Extract column names from the yspec object and format for inclusion in a NONMEM control stream, potentially renaming or dropping columns. The default output is in wide format, including only the column names as well as any rename or drop information. The long format puts each column on a different line and includes the short name and optionally column decode information. See examples.
nm_input(
spec,
.width = 65,
.cat = TRUE,
.long = FALSE,
.drop = NULL,
.decodes = FALSE,
...
)
spec |
a yspec object. |
.width |
passed to |
.cat |
if |
.long |
if |
.drop |
a character vector or comma-separated string of columns to
drop in the |
.decodes |
if |
... |
unquoted column rename pairs with format
|
Columns with character type are automatically dropped; there is no need
to list these under the .drop
argument.
A character vector of text forming the $INPUT
block (including
the $INPUT
part).
spec <- ys_help$spec()
nm_input(spec)
nm_input(spec, DOSE = AMT, .drop = "ALT,BMI")
nm_input(spec, .long = TRUE)
nm_input(spec, .long = TRUE, .decodes = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.