Skip to contents

This function filters main dataset based on provided slope selections an exclusions.

Usage

filter_slopes(data, slopes, profiles, slope_groups)

Arguments

data

Data to filter. Must be PKNCAdata list, containing the conc element with PKNCAconc list and appropriate data frame included under data.

slopes

Data frame with slopes selection rules, must contain the following columns: TYPE, PATIENT, PROFILE, RANGE, REASON.

profiles

List with available profiles for each PATIENT.

slope_groups

List with column names that define the groups.

Value

Original dataset, with is.included.hl, is.excluded.hl and exclude_half.life columns modified in accordance to the provided slope filters.