Learn R Programming

ProduceR (version 1.0)

tac: Computes a contingency table (tac) of all columns in a dataframe for control purposes

Description

Contingency table (tac) of all columns in a dataframe for control purposes

Usage

tac(
  df,
  values = NULL,
  sample_rate = 0.01,
  num_but_discrete = "NULL",
  strates = NULL
)

Value

data.frame

Arguments

df

Input data.frame

values

Vector of columns that serve as measures (amounts, counts, etc.)

sample_rate

Sampling rate, if df is a remote table

num_but_discrete

Vector of names of numeric columns with discrete modalities (not continuous)

strates

Vector of column names by which to stratify the contingency tables

Examples

Run this code
tab <- tac(iris) # calculate column frequencies

Run the code above in your browser using DataLab