From 15391f3c411143eb83502aa318d019eae541b9de Mon Sep 17 00:00:00 2001 From: JTPetter <61797391+JTPetter@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:32:29 +0100 Subject: [PATCH] Fix 2774 --- R/rareEventCharts.R | 3 +++ inst/qml/rareEventCharts.qml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 {