mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
bumped to 25.2.1 - new visuals tab - all functions in place - code cleanup has started
This commit is contained in:
parent
c4b5a7ba79
commit
14edce9912
36 changed files with 3564 additions and 2976 deletions
|
|
@ -367,8 +367,8 @@ summary_vars <- function(data) {
|
|||
name = names(data),
|
||||
label = lapply(data, \(.x) REDCapCAST::get_attr(.x, "label")) |> unlist(),
|
||||
class = get_classes(data),
|
||||
# n_missing = unname(colSums(is.na(data))),
|
||||
# p_complete = 1 - n_missing / nrow(data),
|
||||
n_missing = unname(colSums(is.na(data))),
|
||||
p_complete = 1 - n_missing / nrow(data),
|
||||
n_unique = get_n_unique(data)
|
||||
)
|
||||
|
||||
|
|
@ -440,11 +440,11 @@ update_variables_datagrid <- function(data, height = NULL, selectionId = NULL, b
|
|||
minWidth = 100
|
||||
)
|
||||
|
||||
# grid <- toastui::grid_format(
|
||||
# grid = grid,
|
||||
# "p_complete",
|
||||
# formatter = toastui::JS("function(obj) {return (obj.value*100).toFixed(0) + '%';}")
|
||||
# )
|
||||
grid <- toastui::grid_format(
|
||||
grid = grid,
|
||||
"p_complete",
|
||||
formatter = toastui::JS("function(obj) {return (obj.value*100).toFixed(0) + '%';}")
|
||||
)
|
||||
grid <- toastui::grid_style_column(
|
||||
grid = grid,
|
||||
column = "name_toset",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue