Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 16, 2023
1 parent ab63088 commit 9833672
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/principal_components.R
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,6 @@ principal_components.data.frame <- function(x,
} else if (n < 1) {
n <- 1
}

## TODO: the next if-statement was removed by Dom, but this breaks
## performance code. Need to check, so we for now add this back

# sanity check - we need at least two factors
if (n < 2 && ncol(x) >= 2) {
n <- 2
}
n
}

Expand Down

0 comments on commit 9833672

Please sign in to comment.