Skip to content

Commit 6f2e885

Browse files
committed
fix
1 parent 8481a4a commit 6f2e885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/n_factors.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ n_factors <- function(x,
151151
# Smooth matrix if negative eigen values
152152
if (any(eigen_values < 0)) {
153153
insight::check_if_installed("psych")
154-
correlation_matrix <- psych::cor.smooth(cor, ...)
154+
correlation_matrix <- psych::cor.smooth(correlation_matrix, ...)
155155
eigen_values <- eigen(correlation_matrix)$values
156156
}
157157

0 commit comments

Comments
 (0)