Computes which rows of a summary table correspond to the levels of categorical variables (used for indentation in publication tables).

ind_loc_fun(var, data)

Arguments

var

Character vector of variable names.

data

Data frame containing these variables as factors.

Value

Integer vector of row indices corresponding to non-header rows.

Examples

if (FALSE) { # \dontrun{
ind_loc_fun(c("Stage","Gender"), mydata)
} # }