Skip to content
New issue

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

[Bugzilla#18796] Try do.call(c, ans) instead of unlist() in tapply(simplify=TRUE) #183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MichaelChirico
Copy link
Collaborator

https://bugs.r-project.org/show_bug.cgi?id=18796

Not sure all the subtle ways unlist(., recursive=FALSE, use.names=FALSE) might differ from do.call(c, .) besides method dispatch, but the method dispatch part at least WAI:

ans <- list(as.difftime(1, units='secs'), as.difftime(3, units='hours'))

unlist(ans)
# [1] 1 3

do.call(c, ans)
# Time differences in secs
# [1]     1 10800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant