R: Coercion and checking functions for fcm objects

as.fcm {quanteda} | R Documentation

## Coercion and checking functions for fcm objects

### Description

Convert an eligible input object into a fcm, or check whether an object is a fcm. Current eligible inputs for coercion to a dfm are: matrix, (sparse) Matrix and other fcm objects.

### Usage

    as.fcm(x)

### Arguments

`x` | a candidate object for checking or coercion to dfm

### Value

`as.fcm` converts an input object into a fcm.

[Package quanteda version 3.1.0 Index]