Description Usage Arguments Value Note Author(s) Examples
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
1 | readNmData(file, ignore, accept, translate, records, null=NA, sep)
|
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 |
A data.frame of the contents of the tables in the file
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.
Mango Solutions
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.