Build data and AI skills | 50% off

Last chance! 50% off unlimited learning

Sale ends in


quanteda (version 0.9.9-50)

dfm2lsa: convert a dfm to an lsa "textmatrix"

Description

Converts a dfm to a textmatrix for use with the lsa package.

Usage

dfm2lsa(x)

Arguments

x
dfm to be converted

Examples

Run this code
## Not run: ------------------------------------
# (mydfm <- dfm(c(d1 = "this is a first matrix", d2 = "this is second matrix as example")))
# lsa::lsa(convert(mydfm, to = "lsa"))
## ---------------------------------------------

Run the code above in your browser using DataLab