Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wide

Long to Wide Data Reshaping


Description

wide() is a wrapper of stats::reshape() that takes the data from a long format to a wide format.

Usage

wide(data, v.names, timevar, id = NULL)

Arguments

data

the data.frame containing the wide format data

v.names

the variable names in quotes of the measures to be separated into multiple columns based on the time variable

timevar

the variable name in quotes of the time variable

id

the ID variable name in quotes

Author(s)

Tyson S. Barrett

See Also

stats::reshape(), tidyr::spread()


furniture

Furniture for Quantitative Scientists

v1.9.10
GPL-3
Authors
Tyson S. Barrett [aut, cre] (<https://orcid.org/0000-0002-2137-1391>), Emily Brignone [aut], Daniel J. Laxman [aut]
Initial release
2021-02-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.