log_filter | R Documentation |
Filter Data with Log
log_filter(data, condition, ...)
## S3 method for class 'data.frame'
log_filter(data, condition, suffix = NULL, ...)
## S3 method for class 'list'
log_filter(
data,
condition,
table,
by = c("USUBJID", "STUDYID"),
suffix = NULL,
verbose = FALSE,
...
)
data |
( |
condition |
( |
... |
further arguments to be passed to or from other methods. |
suffix |
( |
table |
( |
by |
( |
verbose |
( |
log_filter
will filter the data/named list of data according to the condition
.
All the variables in condition
must exist in the data (as variables) or in the parent
frame(e.g., in global environment).
For named list of data, if ADSL
is available, log_filter
will also try to subset all
other datasets with USUBJID
.
a data.frame
or list
of data.frame
filtered for the provided conditions.
data <- iris
attr(data$Sepal.Length, "label") <- "cm"
log_filter(data, Sepal.Length >= 7)
log_filter(list(iris = iris), Sepal.Length >= 7, "iris", character(0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.