Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JosiahParry opened this issue May 20, 2024 · 0 comments
Open

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

JosiahParry opened this issue May 20, 2024 · 0 comments

Comments

@JosiahParry
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant