We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 466b729 commit 523e16dCopy full SHA for 523e16d
1 file changed
R/helper_functions.R
@@ -175,7 +175,7 @@ derive_req_vars <- function(
175
ref_range_upper_lim_var,
176
sel_x,
177
sel_y) {
178
- if (!is.null(dataset) & nrow(dataset) != 0) {
+ if (!is.null(dataset) && nrow(dataset) != 0) {
179
# Get the data frame in required structure (Pivot wider grouped by certain variables)
180
dataset <- dataset %>%
181
dplyr::filter(.data[[lb_test_var]] %in% c(sel_x, sel_y)) %>%
@@ -268,7 +268,7 @@ generate_plot <- function(
268
y_rng_lower,
269
y_rng_upper,
270
source = NULL) {
271
- if (is.null(dataset) | nrow(dataset) == 0) {
+ if (is.null(dataset) || nrow(dataset) == 0) {
272
return(NULL)
273
}
274
0 commit comments