Skip to content

Commit

Permalink
Fix PCA module
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Jan 3, 2024
1 parent 1b639fa commit 6b5831f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/module_multivar.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 6b5831f

Please sign in to comment.