bwlewis / irlba

Fast truncated singular value decompositions
127 stars 17 forks source link

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

Open JosiahParry opened 6 months ago

JosiahParry commented 6 months ago

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