How do I pass an extra two arguments to a purrr:map function
This works ( not real code )
test -> function(.value) {
print value
}
purrr::map(values,test)
but how do I send two extra parameters A and B to the function
test -> function(.value) { ( 2nd and 3rd parameter ??? )
print value
...do something with a A
...do something with a B
}
purrr::map(values,test,??? )
I think I have seen the tilde character used ie ~test
Thanks