As you can see, the ellipsis in the map function contains, in addition to the arguments I passed, also .x and .y.
Question: why?
1) It interferes with my idea
2) There is already one in the environment .x.y, why are their duplicates in ...?
I have a request - please remove from ... in map, the first 2 arguments are not needed, their presence is impractical.
P.S.: Workarounds of this jamb through do.call or something that requires passing a function not directly in the formula, but through "function" or something like that are categorically not suitable!
Acceptable crutch - if they explain to me how to remove from ... the first 2 arguments. But in general, this is a bad decision.
The best solution is to remove the first 2 garbage arguments from ... on the function side.
Sometimes I need to pass an ellipsis to the map-family functions. But there are problems.
Let's look at the problem with an example (JUST AN EXAMPLE):
What i get:
What i expect:
The reason is that the implementation of ellipsis in map does not allow me to do this.
As you can see, the ellipsis in the map function contains, in addition to the arguments I passed, also
.x
and.y
.Question: why? 1) It interferes with my idea 2) There is already one in the environment
.x
.y
, why are their duplicates in...
?I have a request - please remove from
...
in map, the first 2 arguments are not needed, their presence is impractical.P.S.: Workarounds of this jamb through do.call or something that requires passing a function not directly in the formula, but through "function" or something like that are categorically not suitable!
Acceptable crutch - if they explain to me how to remove from
...
the first 2 arguments. But in general, this is a bad decision.The best solution is to remove the first 2 garbage arguments from
...
on the function side.