Description Usage Arguments Value
View source: R/vizBySubgroup-plotFcns.R
collapseProp() is an internal function that takes a data
frame of a particular structure and returns a data frame with proportions
that are used in creating bar charts.
1 | collapseProp(data, var = 1)
|
data |
Any object that can be coerced into a |
var |
An scalar integer that indicates
which column(s) of |
A data frame with three variables:
values, contains the levels of var
among the treated and the levels among the untreated
trt, an factor variable, indicating
which treatment group the
row corresponds to
propor, the proportion of the entire sample that has that
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.