Replies: 1 comment
-
|
I think you understand what multiple map does with a dataframe. Your second example comes close, but you don't define Below is the simplest solution: library(mirai)
daemons(6)
mirai_map(
mtcars,
function(mpg, cyl, ...) {
paste0(mpg, cyl)
}
)[]
daemons(0)If your function just takes This is just how R behaves and isn't something introduced by mirai. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to make more use of
mirai_map()with dataframes but it seems like it requires explicitly naming every column in a dataframe. I may be failing to understand the documentation but it seems to me there's no real explanation of this behavior. How ismirai_map()intended to be used with dataframes? And is programmatic use without explicitly naming every column in the function possible?For example the below throws an error about unused arguments for each column not passed to the anonymous function's arguments:
Using
...avoids this, but causes other unintuitive behavior:I am not sure if this is the intended behavior, or I'm outside of the intended use case here.
Beta Was this translation helpful? Give feedback.
All reactions