Learn R Programming

nonmemica (version 0.9.1)

comments: Extract Comments

Description

Extracts comments.

Extracts comments from records.

Extracts comments from model.

Extracts comments from items.

Extracts comments from inits.

Usage

comments(x, ...)

# S3 method for records comments(x, ...)

# S3 method for model comments(x, fields = c("symbol", "unit", "label"), expected = character(0), na = NA_character_, tables = TRUE, ...)

# S3 method for items comments(x, ...)

# S3 method for inits comments(x, type, prior, ...)

Arguments

x

object of dispatch

...

dots

fields

data items to scavenge from control stream comments

expected

parameters known from NONMEM output

na

string to use for NA values when writing default metafile

tables

whether to include table comments

type

item type: theta, omega, sigma (tables give items not inits)

prior

number of prior items of this type (maybe imporant for numbering)

x

model

...

passed arguments

Value

data.frame

data.frame

data.frame

data.frame

Methods (by class)

  • records: record method

  • model: model method

  • items: items method

  • inits: inits method

Examples

Run this code
# NOT RUN {
library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% as.model %>% comments
# }

Run the code above in your browser using DataLab