Learn R Programming

PKPDmisc (version 2.1.2)

s_pauc_: summarize paucs

Description

summarize paucs

Usage

s_pauc_(df, idv, dv, paucs, digits = Inf)

s_pauc(df, idv, dv, paucs, digits = Inf)

Arguments

df

data frame

idv

string name for time column for pauc slice

dv

string name for dependent variable column (eg. dv or cobs)

paucs

list of ranges for pauc calculation

digits

number of decimals to round result before returning

Examples

Run this code
# NOT RUN {
library(dplyr)
sd_oral_richpk  %>% group_by(ID) %>% s_pauc(Time, Conc, list(c(0,8), c(8, 24)))
sd_oral_richpk  %>% group_by(ID) %>% s_pauc_("Time", "Conc", list(c(0,8), c(8, 24)))
# }

Run the code above in your browser using DataLab