setcolsnull {popEpi} | R Documentation |
Delete data.table
columns if there
Description
Deletes columns in a data.table
conveniently.
May only delete columns that are found silently. Sometimes useful in e.g.
on.exit
expressions.
Usage
setcolsnull(
DT = NULL,
delete = NULL,
keep = NULL,
colorder = FALSE,
soft = TRUE
)
Arguments
DT |
a |
delete |
a character vector of column names to be deleted |
keep |
a character vector of column names to keep;
the rest will be removed; |
colorder |
logical; if |
soft |
logical; if |
Value
Always returns 'NULL' invisibly. This function is called for its side effects.
Author(s)
Joonas Miettinen
[Package popEpi version 0.4.12 Index]