First of all, thanks for the awesome library. However, I can't get "cast" to work as it does in the Reshape package for R, namely, I can't figure out how to name columns based on the values of the fields of the input data.
As you can see at the bottom of this R Reshape example:
http://www.statmethods.net/management/reshape.html
"x1" and "x2" were values of field "variable" before casting and after casting "x1" and "x2" become column names. Is it possible to do this with "cast" in melt.js? If so, how? Thank you very much.
First of all, thanks for the awesome library. However, I can't get "cast" to work as it does in the Reshape package for R, namely, I can't figure out how to name columns based on the values of the fields of the input data.
As you can see at the bottom of this R Reshape example:
http://www.statmethods.net/management/reshape.html
"x1" and "x2" were values of field "variable" before casting and after casting "x1" and "x2" become column names. Is it possible to do this with "cast" in melt.js? If so, how? Thank you very much.