filterC: Filter IGNORE=C

Description Usage Arguments Details Value Author(s) Examples

Description

This function filters out commented rows from a NONMEM-style dataset, and removes the comment column for plotting.

Usage

1
filterC(ds, ignore = "C")

Arguments

ds

Longform dataset with first column marked to indicate ignored rows.

ignore

Character in the first column used to indicate which rows to ignore. Defaults to "C".

Details

This function takes a data.frame with the first column marked to indicate rows to ignore. The default value for ignore is "C", similar to NONMEM, however any alphanumeric character can be used. The function will return the data.frame ds with all indicated rows removed as well as the entire first column.

Value

Data.frame ds with the rows marked ignore removed, and the entire first column removed.

Author(s)

Samuel Callisto calli055@umn.edu filterC()

Examples

1
2
3
4
dataset <- data.frame(rep(c("C","."), 10), c(1:20), LETTERS[1:20], letters[1:20])
names(dataset) <- c("C", "SID", "cov1", "cov2")
output <- filterC(dataset)
output

callistosp/dataTools documentation built on May 3, 2019, 4:31 p.m.