drop_columns {pharmr}R Documentation

drop_columns

Description

Drop columns from the dataset or mark as dropped

Usage

drop_columns(model, column_names, mark = FALSE)

Arguments

model

(Model) Pharmpy model object

column_names

(array(str) or str) List of column names or one column name to drop or mark as dropped

mark

(logical) Default is to remove column from dataset. Set this to TRUE to only mark as dropped

Value

(Model) Pharmpy model object

See Also

drop_dropped_columns : Drop all columns marked as drop

undrop_columns : Undrop columns of model

Examples

## Not run: 
model <- load_example_model("pheno")
model <- drop_columns(model, c('WGT', 'APGR'))
vector(model$dataset$columns)

## End(Not run)

[Package pharmr version 1.0.1 Index]