The current implementation assumes the matrices / dataframes are vectors, not taking into account that they have dim attributes.
More broadly though, when supplying a list of things, the expectation is likely to just map over the list as per lapply() or purrr::map().
So let's limit the 2D or multiple-map to dataframe / matrix objects, which are clearly '2D'. The expectation then should reasonably be to map over the rows.
The current implementation assumes the matrices / dataframes are vectors, not taking into account that they have
dim
attributes.More broadly though, when supplying a list of things, the expectation is likely to just map over the list as per
lapply()
orpurrr::map()
.So let's limit the 2D or multiple-map to dataframe / matrix objects, which are clearly '2D'. The expectation then should reasonably be to map over the rows.
Originally raised by andrewGhazi in #147.