Learn R Programming

quanteda (version 2.0.1)

diag2na: convert same-value pairs to NA in a textstat_proxy object

Description

Converts the diagonal, or the same-pair equivalent in an object where the columns have been selected, to NA.

Usage

diag2na(x)

Arguments

x

Value

sparse Matrix format with same-pair values replaced with NA