Closed EddieYang211 closed 4 years ago
Of course there is; define a proper local function, or use e.g. mapply
to apply with multiple args.
Is that really the error you got? Expecting a function in position two makes me think you ran sapply
or lapply
, not apply
. I am closing this at it has nothing to with RcppEigen.
Hi,
I was trying to residualize many columns in a matrix using apply() and RcppEigen::fastLm() but it seems that both functions take an argument "X", causing error.
Here is an example:
Running the above lines generate the following error:
Is there a way around this or would it be possible to change the argument names of fastLm()?
Thanks!