Skip to content

Cast does not auto-generate column names #4

@peacej

Description

@peacej

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions