dfm2lsa: Convert a dfm to an lsa "textmatrix"

View source: R/convert.R

dfm2lsaR Documentation

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

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

## End(Not run)

quanteda documentation built on Sept. 11, 2024, 6:08 p.m.