| is.LexOPS_pipeline | R Documentation |
LexOPS_pipelineCheck whether an object is of class LexOPS_pipeline
is.LexOPS_pipeline(x)
x |
Object, possibly resulting from one of |
A logical value: TRUE if x is of class LexOPS_pipeline, or FALSE otherwise.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.