We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
transpose()
Currently, the following leads to an empty $error element (and a $result element where the z data in the original object has disappeared):
$error
$result
z
x = rerun(5, x = runif(1), y = runif(5)) x[[4]]$z = 3:5 safely(transpose)(x)
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
8f3a16a
No branches or pull requests
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: