*! version 1.0 10jul2017

Title

spread -- An easier way to reshape wide

Syntax

spread variable value , [label(varname)]

Description

spread spreads a variable value pair across multiple columns. It is a simpler version of reshape wide. Its goal is similar to the homonym function in the R package tidyr.

Options

label(varname) uses the string variable varname to construct variable labels for new variables

Examples

. sysuse educ99gdp.dta, clear

. gather public private

. spread variable value

Author

Matthieu Gomez

Department of Economics, Princeton University

Please report issues on Github
https://github.com/matthieugomez/stata-tidy