diff --git a/R/rareEventCharts.R b/R/rareEventCharts.R index dcd1224e..c3b9befd 100644 --- a/R/rareEventCharts.R +++ b/R/rareEventCharts.R @@ -37,6 +37,9 @@ rareEventCharts <- function(jaspResults, dataset, options) { dataset <- .readDataSetToEnd(columns.as.factor = factorVariables, columns.as.numeric = numericVariables) } + # remove NA + dataset <- na.omit(dataset) + # Checking for errors in the dataset .hasErrors(dataset, type = c('infinity'), diff --git a/inst/qml/rareEventCharts.qml b/inst/qml/rareEventCharts.qml index 261bf74a..88d919ba 100644 --- a/inst/qml/rareEventCharts.qml +++ b/inst/qml/rareEventCharts.qml @@ -174,7 +174,7 @@ Form { name: "tChart" label: qsTr("T chart") - checked: true + checked: false DropDown {