long | R Documentation |
Convert A panel, 'wide' format matrix or dataframe to a 'long' format data frame.
long(Y)
Y |
A panel, 'wide' format matrix or data frame. The columns have to represent different periods of time and the rows different entries (countries, regions, people, companies, etc.). |
The 'long' format data frame, with three columns: 'time', 'id' and 'value'.
Other convert:
df2mat()
,
fac2num()
,
mat2df()
Y <- df2mat(dfPolicyRate) Yl = long(Y) head(Yl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.