Questions tagged [pmap]
161 questions
0
votes
1 answer
Using Arima forecast with possibly doesn't work
i have two pieces of code:
one is working, another isn't.
Maybe someone has any idea why it doesn't work.
PS. I know that it isn't full reproducible example, but if it be necessary I would provide one.
arima_cv = forecast_data_ini_split %>%
…

Seweryn Grodny
- 1
- 4
0
votes
1 answer
Is there a way of using the pmap function in purrr to iteratively adjust a dataset?
I've created a function which I am trying to apply to a dataset using pmap. The function I've created amends some columns in a dataset. I want the amendment that's applied to the two columns to carry over to the 2nd and subsequent iterations of…

andrew
- 49
- 5
0
votes
0 answers
x86-64 objdump vs pmap addresses
#include
int main() {
printf("text at %p\n", main);
int c = getchar();
}
Compiling the above code on VirtualBox Ubuntu 64 bit and running it, I get:
text at 0x55555555468a
pmap:
0000555555554000 4K r-x--…

pie
- 1
- 3
0
votes
1 answer
using purrr::pmap on each row of a dataframe where columns may vary
df <- tibble::tribble( ~sev_curve, ~curve_type, ~trend_date, ~weight,
"MILO", 'HOSPITALS', '7/1/2020', 0.4,
'ALSO', 'PHYSICIANSC', '7/1/2020', 0.6)
df %>%…

Bear Bile Farming is Torture
- 4,317
- 4
- 27
- 61
0
votes
1 answer
(Julia 1.x) BoundsError using pmap?
I am having trouble with pmap() throwing a BoundsError when setting the values of array elements - my code works for 1 worker but not >1. I have written a minimum working example which roughly follows the real code flow:
Get source data
Define set…

DocDave
- 146
- 6
0
votes
1 answer
Run two pmap with different workers asynchronously in Julia
I have a function which I use with pmap to paralellize it. I would like to run 4 times this function asynchronously using 10 workers each but I can't run two or more pmap at the same time.
I'm using Julia v1.1 with a 40-CPUs machine on linux.…
0
votes
0 answers
purrr:pmap not passing values from a list
Calling a function from pmap is throwing an error as arguments are not being passed on their own
Tried creating lists of the parameters but this too has resulted in an error
library(tidyverse)
library(dplyr)
periods <- c(10,11,12)
redemption <-…
0
votes
1 answer
Using pmap in ggplot2 to automate plotting graphs of different datasets
I am trying to automate my bar graphs by writing a function which will take different datasets and x and y axis values.
Since the function has three arguments(dataset, x-axis and y-axis), I am using pmap() from purrr.
The function works fine when I…

10618890
- 5
- 1
- 5
0
votes
1 answer
pmap data format (Julia 1.1.0)
I have a function which I run using pmap. I would like the output to be a vector - p - whose entries are the output of each iteration run parallel. For illustration, the code is as below:
@everywhere function addo(mc,mcf)
p = zeros(Int64,mcf)…

user3856486
- 515
- 1
- 4
- 16
0
votes
2 answers
Can't access string elements from input list in purr::pmap or purr:map2
I have a tricky problem to access the string values of a list as argument to purr functions.
My goal is to concatenate all permutations of the string elements of two vectors (to use in an output filename) which I put into one input…

Agile Bean
- 6,437
- 1
- 45
- 53
0
votes
0 answers
using purrr:map over multiple columns (more than 2)
I have the following data --
structure(list(k = structure(c(17563, 17591, 17622, 17652, 17683
), class = "Date"), startdt = structure(c(17532, 17561, 17589,
17620, 17650), class = "Date"), enddt = structure(c(17560, 17588,
17619, 17649, 17652),…

jsg51483
- 193
- 1
- 10
0
votes
0 answers
In r, the pmap function is breaking for me
x <- list(1, 10, 100)
y <- list(1, 2, 3)
z <- list(5, 50, 500)
purrr::pmap(list(x, y, z), sum)
output is:
[[1]]
NULL
[[2]]
NULL
[[3]]
NULL
Actually, this is an example from the function documentation.

Bear Bile Farming is Torture
- 4,317
- 4
- 27
- 61
0
votes
1 answer
Using purrr::pmap() in a rowwise manner outside of mutate()
I am trying to use purrr::pmap() to apply a custom function in a rowwise fashion along some dataframe rows. I can achieve my desired end result with a for-loop and with apply(), but when I try to use pmap() I can only get the result I want in…

Joe
- 3,217
- 3
- 21
- 37
0
votes
2 answers
printed the address of printf() function and also the pmap of the code...printf()'s address shown to be a part of code seg rather than libc
In my code I tried to print the address of printf() function.
22834: ./a.out
00250000 1372K r-x-- /lib/libc-2.12.1.so
003a7000 8K r---- /lib/libc-2.12.1.so
003a9000 4K rw--- /lib/libc-2.12.1.so
003aa000 12K rw--- [ anon…

Durin
- 2,070
- 5
- 23
- 37
0
votes
2 answers
Julia pmap speed - parallel processing - dynamic programming
I am trying to speed up filling in a matrix for a dynamic programming problem in Julia (v0.6.0), and I can't seem to get much extra speed from using pmap. This is related to this question I posted almost a year ago: Filling a matrix using parallel…

GBatta
- 41
- 1
- 9