profile_table_row_perc: Create row % profile tables of all specified variables by...

View source: R/profile_table.R

profile_table_row_percR Documentation

Create row % profile tables of all specified variables by banner variable.

Description

Create row % profile tables of all specified variables by banner variable.

Usage

profile_table_row_perc(
  df,
  category_vars = NULL,
  numeric_vars = NULL,
  weight_var = NULL,
  banner_var
)

Arguments

df

data.frame of input variables

category_vars

variables that are to be treated as factors in the table output. Will produce counts for each value for each variable. If weight_var is provided, will produce weighted counts.

numeric_vars

variables that are to be treated as numeric in the table output. Will produce means for each variable. if weight_var is provided, will produce weighted means.

weight_var

if not NULL, a vector that contains weights for each observation. The NULL case is equivalent to all cases being weighted 1.

banner_var

name of the variable to appear along the top of the table.


PrenolanM/rsegmenter documentation built on Aug. 7, 2022, 8:56 p.m.