as.data.frame.cidian_dictionary: Convert a dictionary to a data frame

View source: R/cidian.R

as.data.frame.cidian_dictionaryR Documentation

Convert a dictionary to a data frame

Description

Convert a dictionary to a data frame

Usage

## S3 method for class 'cidian_dictionary'
as.data.frame(x, ...)

Arguments

x

A cidian_dictionary object.

...

Must be empty.

Value

A base data.frame with word, code, and weight columns. code is a list-column of character vectors and weight is numeric.

Examples

x <- read_cidian(system.file("extdata", "computer.qcel", package = "cidian"))
head(as.data.frame(x))

cidian documentation built on Sept. 28, 2026, 5:08 p.m.