R: Get the package version that created an object

get_object_version {quanteda} | R 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

[Package quanteda version 3.1.0 Index]