From 23a4e32c7d5395def97a5ab2c6fcac29c582cf9a Mon Sep 17 00:00:00 2001 From: nfrerebeau Date: Tue, 3 Sep 2024 20:27:15 +0200 Subject: [PATCH] Follow changes in nexus --- R/coda_outliers.R | 3 +-- R/coda_statistics.R | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/R/coda_outliers.R b/R/coda_outliers.R index 26e96fa..cfc36b8 100644 --- a/R/coda_outliers.R +++ b/R/coda_outliers.R @@ -78,9 +78,8 @@ coda_outliers_server <- function(id, x) { run_with_notification( { - nexus::outliers( + nexus::detect_outliers( x(), - groups = nexus::groups(x()), method = input$method, quantile = input$quantile ) diff --git a/R/coda_statistics.R b/R/coda_statistics.R index b3867dc..7bdf63a 100644 --- a/R/coda_statistics.R +++ b/R/coda_statistics.R @@ -98,9 +98,9 @@ coda_summary_server <- function(id, x) { ## Metric variance by group if (nexus::any_assigned(x())) { index <- nexus::groups(x()) - s <- nexus::aggregate(x(), by = index, FUN = nexus::metric_var) + s <- nexus::aggregate(x(), by = index, FUN = nexus::variance_total) } else { - m <- nexus::metric_var(x()) + m <- nexus::variance_total(x()) s <- matrix(m, nrow = 1, dimnames = list("", NULL)) } colnames(s) <- c("metric variance") @@ -234,7 +234,7 @@ coda_summary_server <- function(id, x) { ## Download ----- output$download <- export_multiple( location = data_loc, - spread = data_spread, + # spread = data_spread, quantiles = data_quant, covariance = data_cov, variation = data_var,