check_lavaan_df: Turn lavaan model into its data frame version.

View source: R/check-lavaan.R

check_lavaan_dfR Documentation

Turn lavaan model into its data frame version.

Description

Chain this function onto check_object. Use this function first before using check_lavaan_uses.

Usage

check_lavaan_df(state, invalid_model_msg = NULL, append = TRUE)

Arguments

state

state to start from (should be state produced by check_object).

invalid_model_msg

if specified, this overrides the automatically generated feedback message in case the targeted variable does not validly represent a lavaan model.

append

whether or not to append the invalid model message to earlier messages that describe the object.

Examples

## Not run: 

# example
model <- 'a ~ x1'

# sct
ex() %>%
  check_object("model") %>%
  check_lavaan_df()

## End(Not run)


datacamp/testwhat.ext documentation built on Aug. 26, 2022, 4:12 p.m.