Skip to content

rbind.dfm() should not drop docvars #2109

Description

@koheiw

cbind.dfm() drops original docvars:

docvars = make_docvars(nrow(x) + nrow(y), c(docnames(x), docnames(y)), unique = FALSE),

but +.tokens() keeps them

quanteda/R/tokens-methods.R

Lines 199 to 200 in d206654

docvars <- rbind_fill(get_docvars(t1, user = TRUE, system = TRUE),
get_docvars(t2, user = TRUE, system = TRUE))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions