Could to_matrix funciton be useful in the dplyr/tidyr package?

Hello,

I was looking for a quite robust function to convert tibble to matrix with handling of rownames. I created this script that I would enjoy in dplyr/tidyr libraries as user

https://gist.github.com/stemangiola/39b08d529157ce59a5ff5dc1653951c5

please let me know if it's of interest how can I proceed to make a pull request.

Bw.

You might be interested in the tbl_cube format, which I think is best described as being to arrays as tibbles are to data frames. @mdsumner and I have talked about them a bit with respect to their tidync package, but I don't know how much of a priority tbl_cube development is for dplyr.

4 Likes