Skip to content

Commit

Permalink
fix listwise deletion error with ordinal data in PCA
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuspfadt committed Feb 7, 2024
1 parent 6aa579a commit 3f0b6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/principalcomponentanalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ principalComponentAnalysisInternal <- function(jaspResults, dataset, options, ..
if (!is.null(dataset)) return(dataset)

if (options[["naAction"]] == "listwise") {
return(.readDataSetToEnd(columns = unlist(options$variables), exclude.na.listwise = unlist(options$variables)))
return(.readDataSetToEnd(columns.as.numeric = unlist(options$variables), exclude.na.listwise = unlist(options$variables)))
} else {
return(.readDataSetToEnd(columns.as.numeric = unlist(options$variables)))
}
Expand Down

0 comments on commit 3f0b6ba

Please sign in to comment.