Skip to content

dfm_weight with weights option throws error #1150

Description

@thomasd2

Using quanteda 0.99.9027, the following throws an error about "too many replacement values":

testText <- c("brown brown yellow green", "yellow green blue")
(testDfm <- dfm(tokens(testText)))
testWeights <- rnorm(4)
names(testWeights) <- featnames(testDfm)
testWeights

dfm_weight(testDfm, weights=testWeights)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions