is.LexOPS_pipeline: Check whether an object is of class 'LexOPS_pipeline'

View source: R/class_funs.R

is.LexOPS_pipelineR Documentation

Check whether an object is of class LexOPS_pipeline

Description

Check whether an object is of class LexOPS_pipeline

Usage

is.LexOPS_pipeline(x)

Arguments

x

Object, possibly resulting from one of split_by, control_for, etc..

Value

A logical value: TRUE if x is of class LexOPS_pipeline, or FALSE otherwise.

Examples


library(lexopsdata)

# the lexops dataset is not a LexOPS_pipeline before going through split_by() or control_for()
is.LexOPS_pipeline(lexops)  # FALSE

# a pipeline pregeneration is a LexOPS_pipeline
pregen <- lexops |>
  subset(PK.Brysbaert >= .75) |>
  split_by(BG.SUBTLEX_UK, 0.001:0.003 ~ 0.009:0.011) |>
  control_for(Zipf.SUBTLEX_UK, -0.2:0.2) |>
  control_for(Length, 0:0)

is.LexOPS_pipeline(pregen)  # TRUE

# a pipeline's output is still a LexOPS_pipeline after going through generate()
postgen <- generate(pregen, 10)
is.LexOPS_pipeline(postgen)  # TRUE


LexOPS documentation built on Dec. 1, 2026, 5:06 p.m.