get_object_version: Get the package version that created an object

View source: R/utils.R

get_object_versionR Documentation

Get the package version that created an object

Description

Return the the quanteda package version in which a dfm, tokens, or corpus object was created.

Usage

get_object_version(x)

is_pre2(x)

Value

A three-element integer vector of class "package_version". For versions of the package < 1.5 for which no version was recorded in the object, c(1, 4, 0) is returned.

ispre2() returns TRUE if the object was created before quanteda version 2, or FALSE otherwise


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