Skip to content

Commit

Permalink
sapply -> vapply
Browse files Browse the repository at this point in the history
  • Loading branch information
federicomarini committed Sep 12, 2024
1 parent 1381223 commit 7cb49f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/correlatePCs.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' @export
correlatePCs <- function(pcaobj, coldata, pcs = 1:4) {
# split the analysis for continuous and categorial
coldataTypes <- sapply(coldata, class)
coldataTypes <- vapply(coldata, class, character(1))
# extract the scores from the pc object
x <- pcaobj$x

Expand Down

0 comments on commit 7cb49f1

Please sign in to comment.