Hi! I am new with Julia (being an R-guy) I have a question:
Is something similar to pmap here in Julia? Why I am asking this, because I have this dataframe:
m = DataFrame(
x = [1,2,3],
y = [[1,2,3],[4,5,6],[7,8,9]],
z = [[4,3,2],[6,5,4],[9,8,7]]
)
My objective is to get a “b-columns” that will result of adding up each “y and z” array with the x-string. Let me put this in numbers for better understanding:
m = DataFrame(
x = [1,2,3],
y = [[1,2,3],[4,5,6],[7,8,9]],
z = [[4,3,2],[6,5,4],[9,8,7]],
b = [[6,6,6],[12,12,12],[19,19,19]]
)
I can do it in R using pmap following this:
m <- m %>%
mutate(b = pmap(list(x,y,z),
~pmap_dbl(list(..1,..2,..3), ~ (..1 + ..2 + ..3))))
Is there a similar way to do it in Julia?
Regards