Mutate and filter dataVPC
filterMutateDataVPC.Rd
Mutate and filter dataVPC
filterMutateDataVPC(dataVPC, filterExpr, mutateExpr)
Arguments
- dataVPC
Result from vpc_IQRnlmeProject
- filterExpr
Expression or character containing the expression to filter dataVPC. E.g.
TAD <= 24
is valid as well as"TAD <= 24"
- mutateExpr
Expression or character containing the expression to mutate obs which will also be applied to sim. Must be supplied with
:=
, e.g. supply 'mutateExpr =:=
(DV = DV/DOSE)'"
Value
Filtered and mutated dataVPC
See also
Other VPC:
extractBins_VPCplot()
,
plotBLQVPC_IQRdataVPC()
,
plotVPC_IQRdataVPC()
,
plotVPC_IQRtteProject()
,
vpc_IQRnlmeProject()
Examples
if (FALSE) { # \dontrun{
dataVPC <- readRDS(system.file("examples/VPC/Output/Webinar/vpcdata_00_FinalPKmodel_modified.rds", package = "IQRtools"))
filterMutateDataVPC(dataVPC, filterExpr = TAD < 100)
filterMutateDataVPC(dataVPC, filterExpr = TAD < 100, mutateExpr = `:=`(DV = DV/DOSE))
filterMutateDataVPC(dataVPC,, mutateExpr = `:=`(DV = DV/DOSE))
# Works with characters as well
filterMutateDataVPC(dataVPC, filterExpr = "TAD < 100")
filterMutateDataVPC(dataVPC, filterExpr = "TAD < 100", mutateExpr = "`:=`(DV = DV/DOSE)")
filterMutateDataVPC(dataVPC,, "mutateExpr = `:=`(DV = DV/DOSE)")
} # }