transpose() on invalid data should result in error, not warning #164
Labels
Comments
This is a worse case of the same basic problem: library(purrr)
transpose(list(
list(x = 1, y = 2),
list(y = 2, x = 1)
))
#> $x
#> $x[[1]]
#> [1] 1
#>
#> $x[[2]]
#> [1] 2
#>
#>
#> $y
#> $y[[1]]
#> [1] 2
#>
#> $y[[2]]
#> [1] 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As discussed at http://blog.rstudio.org/2016/01/06/purrr-0-2-0/#comment-20462 running
transpose()
on lists of non-conforming dimensions should result in an error, not a warning.Currently, the following leads to an empty
$error
element (and a$result
element where thez
data in the original object has disappeared):The text was updated successfully, but these errors were encountered: