From 6b5831f0bfee5789701d7e635be1d78f68434bfd Mon Sep 17 00:00:00 2001 From: nfrerebeau Date: Wed, 3 Jan 2024 15:08:20 +0100 Subject: [PATCH] Fix PCA module --- R/module_multivar.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/module_multivar.R b/R/module_multivar.R index fbc4a35..3ba934f 100644 --- a/R/module_multivar.R +++ b/R/module_multivar.R @@ -318,15 +318,15 @@ module_multivar_server <- function(id, x) { }) output$info_ind <- DT::renderDataTable({ req(x()) - info <- dimensio::summary(x(), margin = 1) - dt <- DT::datatable(info@results) + info <- dimensio::summary(x(), margin = 1)@results + dt <- DT::datatable(info) dt <- DT::formatRound(dt, columns = seq_len(ncol(info)), digits = 3) dt }) output$info_var <- DT::renderDataTable({ req(x()) - info <- dimensio::summary(x(), margin = 2) - dt <- DT::datatable(info@results) + info <- dimensio::summary(x(), margin = 2)@results + dt <- DT::datatable(info) dt <- DT::formatRound(dt, columns = seq_len(ncol(info)), digits = 3) dt })