Stata Recast

The recast command coerces a variable into a different data type.


Usage

recast str244 foo
recast double bar

If the coercion will be lossy, the force option is mandatory.


See also

Stata manual for inspect


CategoryRicottone

Stata/Recast (last edited 2023-06-09 14:31:07 by DominicRicottone)