R/long2xtab.R

Defines functions long2xtab

Documented in long2xtab

#' Convert Long Table to Crosstab Format
#'
#' Convert a table from long format to crosstab format.
#'
#' @param x a data frame in long format.
#'
#' @return A data frame with years as row names.
#'
#' @seealso
#' \code{\link{catage.long}} and \code{\link{catage.xtab}} describe the long and
#' crosstab formats.
#'
#' \code{\link{long2taf}} and \code{\link{taf2xtab}} are the underlying
#' functions that perform the conversion.
#'
#' \code{\link{TAF-package}} gives an overview of the package.
#'
#' @examples
#' long2xtab(catage.long)
#'
#' @export

long2xtab <- function(x)
{
  taf2xtab(long2taf(x))
}

Try the TAF package in your browser

Any scripts or data that you put into this service are public.

TAF documentation built on March 31, 2023, 6:51 p.m.