rowwise_calc_percentages {invivoPKfit}R Documentation

Helper function for calculating percentages of count data, by row

Description

This function takes totals and calculates rowise percentages across columns Expects columns for each percentage, can specify a vector of "grouping" column names

Usage

rowwise_calc_percentages(data, group_cols = NULL)

Arguments

data

A data.frame that contains columns of count data and possibly columns of group names.

group_cols

String or numeric indices for the columns which contain grouping variables.

Value

data.frame with rowwise totals and percentages


[Package invivoPKfit version 2.0.1 Index]