wide() is a wrapper of
stats::reshape() that takes the data
from a long format to a wide format.
wide(data, v.names, timevar, id = NULL)
the data.frame containing the wide format data
the variable names in quotes of the measures to be separated into multiple columns based on the time variable
the variable name in quotes of the time variable
the ID variable name in quotes