bwlewis/irlba

... is not respected in `prcomp_irlba()`

Opened this issue · 0 comments

It is not possible to pass the nv argument to irlba() via ... in prcomp_irlba()
Repro:

library(sfdep)
library(spdep)
library(spatialreg)
geom <- guerry$geometry
pnts <- st_centroid(geom)

# neighbors via contiguity
nb <- st_contiguity(geom)

# gaussian kernel weights for neighbors
wt <- st_kernel_weights(nb, pnts, "gaussian")

listw <- nb2listw(nb, wt)

m <- as(listw, "CsparseMatrix")
comps <- irlba::prcomp_irlba(m, n = 10, nv = 100)
#> formal argument "nv" matched by multiple actual arguments