Learn R Programming

ItemRest (version 0.2.3)

print.itemrest_result: Print method for itemrest_result class

Description

Print method for itemrest_result class

Usage

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

Value

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

Arguments

x

An object of class itemrest_result.

report

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

...

Other arguments (not used).

Examples

Run this code
# \donttest{
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")
}
# }

Run the code above in your browser using DataLab