Learn R Programming

eatTools (version 0.7.8)

tableUnlist: Frequency table for data frames, e.g. across multiple columns

Description

Replaces the somehow buggy function combination table(unlist(data)).

Usage

tableUnlist(dataFrame, useNA = c("no", "ifany",
    "always"))

Value

A frequency table

Arguments

dataFrame

Data frame with more than one column.

useNA

whether to include NA values in the table. See help file of table for more details.

Examples

Run this code
dat  <- data.frame ( matrix ( data = sample(0:1,200,replace=TRUE), nrow=20, ncol=10))
tableUnlist(dat)

Run the code above in your browser using DataLab