Learn R Programming

invivoPKfit (version 2.0.1)

rowwise_calc_percentages: 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)

Value

data.frame with rowwise totals and percentages

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.