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

Replace sparseMatrix() with cpp_dfm() #2249

Closed
koheiw opened this issue Apr 12, 2023 · 0 comments
Closed

Replace sparseMatrix() with cpp_dfm() #2249

koheiw opened this issue Apr 12, 2023 · 0 comments

Comments

@koheiw
Copy link
Collaborator

koheiw commented Apr 12, 2023

quanteda/R/dfm.R

Lines 222 to 226 in 95a0cd5

temp <- sparseMatrix(j = index,
p = cumsum(c(1L, lengths(x))) - 1L,
x = 1L,
dims = c(length(x),
length(type)))

Need to remove deprecated functions before doing this.

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

No branches or pull requests

2 participants