Learn R Programming

poliscidata (version 1.2.0)

xtp: Cross tabulation

Description

Makes use of the crosstab function in the descr package.

Usage

xtp(data, y, x, w = NULL, ylab = NULL, xlab = NULL, main = NULL,
  dnn = NULL)

Arguments

data

Dataset to be sorted

y

Dependent variable

x

Independent variable

w

Weights (optional)

ylab

Y-axis label (optional)

xlab

X-axis label (optional)

main

Main label for plot (optional)

dnn

Optional, the names to be given to the dimensions in the result (the dimnames names)

Value

A data frame