View source: R/itemrest_core.R
| print.itemrest_result | R Documentation |
itemrest_result classPrint method for itemrest_result class
## S3 method for class 'itemrest_result'
print(x, report = "optimal", ...)
x |
An object of class |
report |
The type of report to generate: |
... |
Other arguments (not used). |
No return value, called for side effects (prints the report to the console).
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.