Skip to content

Commit a2530e3

Browse files
committed
Change null argument
1 parent c023bc0 commit a2530e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plot_daily.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ plot_daily <- function (data, maxd = 14, inter_gap = 15, tz = "") {
5151
# === Get actual thresholds from HRR ===
5252
HRR_info <- calculate_HRR(data, tz = tz)
5353

54-
if (nrow(HRR_info) == 0 || any(is.na(HRR_info$RHR), is.na(HRR_info$HRR))) {
54+
if (is.null(HRR_info)) {
5555
message("Cannot compute daily heart rate plot: HRR thresholds (RHR/HRR) unavailable. Returning placeholder plot.")
5656
return(
5757
ggplot2::ggplot() +

0 commit comments

Comments
 (0)