Skip to content

Commit

Permalink
Follow changes in nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Sep 3, 2024
1 parent 0b86f90 commit 23a4e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions R/coda_outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
6 changes: 3 additions & 3 deletions R/coda_statistics.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 23a4e32

Please sign in to comment.