From 027aa1993a1c14292b302603275ceccdd7df3641 Mon Sep 17 00:00:00 2001 From: T Date: Fri, 3 May 2024 16:30:28 +0200 Subject: [PATCH] Update mx_api.R Fix bug: change count result to numeric --- R/mx_api.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/mx_api.R b/R/mx_api.R index 1e45b47..674d7d8 100644 --- a/R/mx_api.R +++ b/R/mx_api.R @@ -59,7 +59,7 @@ mx_api_content <- function(from_date = "2013-01-01", details <- api_to_df(details_link) - count <- details$messages[1, 6] + count <- as.numeric(details$messages[1, 6]) pages <- floor(count / 100) message("Estimated total number of records as per API metadata: ", count)