print.itemrest_result: Print method for 'itemrest_result' class

View source: R/itemrest_core.R

print.itemrest_resultR Documentation

Print method for itemrest_result class

Description

Print method for itemrest_result class

Usage

## S3 method for class 'itemrest_result'
print(x, report = "optimal", ...)

Arguments

x

An object of class itemrest_result.

report

The type of report to generate: "optimal" (default) or "all".

...

Other arguments (not used).

Value

No return value, called for side effects (prints the report to the console).

Examples


if (requireNamespace("psych", quietly = TRUE)) {
  data(bfi, package = "psych")
  example_data <- na.omit(bfi[, 1:25])
  results <- itemrest(example_data, n_factors = 5)

  # Print the default optimal report
  print(results)

  # Print the report of all strategies
  print(results, report = "all")
}


ItemRest documentation built on April 13, 2026, 5:07 p.m.