mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
This commit is contained in:
parent
e9422a418b
commit
0feee4f02b
4 changed files with 23 additions and 13 deletions
|
|
@ -1 +1 @@
|
|||
app_version <- function()'250324_1432'
|
||||
app_version <- function()'250326_1206'
|
||||
|
|
|
|||
13
R/helpers.R
13
R/helpers.R
|
|
@ -329,11 +329,16 @@ missing_fraction <- function(data) {
|
|||
data_description <- function(data) {
|
||||
data <- if (shiny::is.reactive(data)) data() else data
|
||||
|
||||
n <- nrow(data)
|
||||
n_var <- ncol(data)
|
||||
n_complete <- sum(complete.cases(data))
|
||||
p_complete <- n_complete/n
|
||||
|
||||
sprintf(
|
||||
i18n("Data has %s observations and %s variables, with %s (%s%%) complete cases"),
|
||||
nrow(data),
|
||||
ncol(data),
|
||||
sum(complete.cases(data)),
|
||||
signif(100 * (1 - missing_fraction(data)), 3)
|
||||
n,
|
||||
n_var,
|
||||
n_complete,
|
||||
signif(100 * p_complete, 3)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue