Learn R Programming

icesTAF (version 3.6.0)

long2xtab: Convert Long Table to Crosstab Format

Description

Convert a table from long format to crosstab format.

Usage

long2xtab(x)

Value

A data frame with years as row names.

Arguments

x

a data frame in long format.

See Also

catage.long and catage.xtab describe the long and crosstab formats.

long2taf and taf2xtab are the underlying functions that perform the conversion.

icesTAF-package gives an overview of the package.

Examples

Run this code
long2xtab(catage.long)

Run the code above in your browser using DataLab