crosstab: Easy cross-tabulation with labels

crosstabR Documentation

Easy cross-tabulation with labels

Description

Easy cross-tabulation with labels

Usage

crosstab(rows, cols, data, margin = "row", useNA = "always", drop.empty = T)

Arguments

rows

Character, variable name to put in rows

cols

Character, variable name to put in columns

data

Data.frame containing variables

margin

If any proportions should be computed, might be 'row', 'col', or 'none'.

useNA

How to deal with NAs, passed to 'table'.

drop.empty

Remove empty categories?

Examples

## Not run: 
   crosstab("country", "frequency", wvs6, "row")

## End(Not run)



MaksimRudnev/LittleHelpers documentation built on Nov. 5, 2024, 10:16 p.m.