readNmData: Read NONMEM dataset removing any "IGNORE" rows and dealing...

Description Usage Arguments Value Note Author(s) Examples

Description

Read NONMEM dataset removing any "IGNORE" rows and dealing with (possibly repeated) headers This function is designed to import either output table or raw input data The ignore string can optionally be added to remove rows from the data Any table file headers found are removed from the data - repeated headers are also removed

Usage

1
readNmData(file, ignore, accept, translate, records, null=NA, sep)

Arguments

file

Name of the file

ignore

[C,1] - ignore option, see NM?$DATA[IGNORE]

accept

[C,1] - accept option, see NM?$DATA[ACCEPT]

translate

[C,1] - translate option, see NM?$DATA[TRANSLATE]

records

[CN,1] - number of records, see NM?$DATA[RECORDS]

null

[C,1] - value to replace NA, see NM?$DATA[NULL]

sep

character that seperates fields

Value

A data.frame of the contents of the tables in the file

Note

At the moment, there is an issue with the "ignore" field, in that it does not handle multiple ignore characters. This will be dealt with in future releases.

Author(s)

Mango Solutions

Examples

1
2
3
4
5
6
7
## Not run:  
inData <- readNmData(file =  "examples/theoph/data.csv") 
print(head(inData))
outData <- readNmData(file = "examples/theoph/Outtable" )
print(head(outData))

## End(Not run)

MangoTheCat/RNMImport documentation built on May 8, 2019, 4:36 p.m.