Learn R Programming

icesTAF (version 3.6.0)

tt: TAF Transpose

Description

Convert a table from TAF format to transposed crosstab format.

Usage

tt(x, column = FALSE)

Value

A data frame with years as column names.

Arguments

x

a data frame in TAF format.

column

a logical indicating whether the group names should be stored in a column called Age instead of in row names. Alternatively, column can be a string supplying another name for that first column.

See Also

t transposes a matrix.

catage.taf describes the TAF format.

taf2xtab converts a TAF table to crosstab format, without transposing.

icesTAF-package gives an overview of the package.

Examples

Run this code
taf2xtab(catage.taf)
tt(catage.taf)
tt(catage.taf, TRUE)
tt(catage.taf, "Custom")

Run the code above in your browser using DataLab