Skip to content

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

@JosiahParry

Description

@JosiahParry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions