Initial commit
This commit is contained in:
commit
3cba772836
1341 changed files with 532924 additions and 0 deletions
BIN
ISS20r/.RData
Normal file
BIN
ISS20r/.RData
Normal file
Binary file not shown.
1
ISS20r/.Rprofile
Normal file
1
ISS20r/.Rprofile
Normal file
|
|
@ -0,0 +1 @@
|
|||
source("renv/activate.R")
|
||||
13
ISS20r/ISS20r.Rproj
Normal file
13
ISS20r/ISS20r.Rproj
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Version: 1.0
|
||||
|
||||
RestoreWorkspace: Default
|
||||
SaveWorkspace: Default
|
||||
AlwaysSaveHistory: Default
|
||||
|
||||
EnableCodeIndexing: Yes
|
||||
UseSpacesForTab: Yes
|
||||
NumSpacesForTab: 2
|
||||
Encoding: UTF-8
|
||||
|
||||
RnwWeave: Sweave
|
||||
LaTeX: pdfLaTeX
|
||||
869
ISS20r/app.R
Normal file
869
ISS20r/app.R
Normal file
|
|
@ -0,0 +1,869 @@
|
|||
# Praeambel ####
|
||||
|
||||
AKZENT_FARBE = "#8B2635"
|
||||
|
||||
PFAD_DOWNLOAD_SKRIPT = "../API/get_data_iss20r.R"
|
||||
PFAD_PSEUDONYM_SKRIPT = "../get_pseudo.R"
|
||||
PFAD_NORMTABELLEN = "normtabellen"
|
||||
|
||||
ISS20R_DISCLAIMER = paste0(
|
||||
"Diese Auswertung ist ein Hilfsmittel für klinisches Fachpersonal und ersetzt ",
|
||||
"keine klinische Diagnose. Die Interpretation obliegt der behandelnden Person."
|
||||
)
|
||||
|
||||
ISS20R_HINWEIS_CUTOFF = paste0(
|
||||
"Die verwendeten Schwellenwerte (ab 50 Punkten 'internetsuchtgefährdet', ab 60 Punkten ",
|
||||
"'internetsüchtig') beruhen auf einer fachlich-inhaltlichen Festlegung der Testautoren ",
|
||||
"und nicht auf einer statistisch ermittelten Trennschärfe. Es handelt sich um eine ",
|
||||
"Orientierungsgrösse, keine empirisch scharf abgegrenzte diagnostische Grenze."
|
||||
)
|
||||
|
||||
ISS20R_HINWEIS_NORMBASIS = paste0(
|
||||
"Die Normwerttabellen stammen aus der Konstruktionsstichprobe von 1999, die mit der ",
|
||||
"ursprünglichen Fassung von Item 4 (KV4) erhoben wurde. Die hier eingesetzte revidierte ",
|
||||
"Fassung dieses Items gilt nach Angaben der Testautoren wegen hoher Iteminterkorrelation ",
|
||||
"und kaum veränderter interner Konsistenz als weitgehend austauschbar. Die Normwerte ",
|
||||
"selbst wurden jedoch nicht empirisch neu an der revidierten Fassung berechnet."
|
||||
)
|
||||
|
||||
# Farbverlauf gruen -> dunkelrot fuer die 4 Antwortstufen (1 = trifft nicht zu, 4 = trifft genau zu).
|
||||
ISS20R_BADGE_FARBEN = c(
|
||||
"1" = "#4CAF50",
|
||||
"2" = "#F48FB1",
|
||||
"3" = "#EF5350",
|
||||
"4" = "#B71C1C"
|
||||
)
|
||||
ISS20R_BADGE_TEXT_FARBEN = c(
|
||||
"1" = "white",
|
||||
"2" = "#333333",
|
||||
"3" = "white",
|
||||
"4" = "white"
|
||||
)
|
||||
|
||||
ISS20R_KLASS_WORD_FARBEN = list(
|
||||
unauffaellig = list(bg = "#E8F5E9", text = "#2E7D32"),
|
||||
gefaehrdet = list(bg = "#FFF3E0", text = "#E65100"),
|
||||
suechtig = list(bg = "#FFEBEE", text = "#B71C1C")
|
||||
)
|
||||
|
||||
library(shiny)
|
||||
library(dplyr)
|
||||
library(ggplot2)
|
||||
library(haven)
|
||||
library(officer)
|
||||
|
||||
|
||||
# Infrastruktur ####
|
||||
|
||||
APP_VERZEICHNIS = normalizePath(getwd())
|
||||
|
||||
absPath = function(pfad) {
|
||||
if (grepl("^([A-Za-z]:[/\\\\]|/)", pfad)) return(pfad)
|
||||
file.path(APP_VERZEICHNIS, pfad)
|
||||
}
|
||||
|
||||
PFAD_DOWNLOAD_SKRIPT = normalizePath(absPath(PFAD_DOWNLOAD_SKRIPT), mustWork = FALSE)
|
||||
PFAD_PSEUDONYM_SKRIPT = normalizePath(absPath(PFAD_PSEUDONYM_SKRIPT), mustWork = FALSE)
|
||||
PFAD_NORMTABELLEN = normalizePath(absPath(PFAD_NORMTABELLEN), mustWork = FALSE)
|
||||
|
||||
|
||||
# Helper ####
|
||||
|
||||
ISS20R_SUBSKALEN = data.frame(
|
||||
kurz = c("KV", "EE", "TT", "NA", "NS"),
|
||||
name = c(
|
||||
"Kontrollverlust",
|
||||
"Entzugserscheinungen",
|
||||
"Toleranzentwicklung",
|
||||
"Negative Konsequenzen Arbeit/Leistung",
|
||||
"Negative Konsequenzen soziale Beziehungen"
|
||||
),
|
||||
stringsAsFactors = FALSE
|
||||
)
|
||||
|
||||
ISS20R_ITEMS = data.frame(
|
||||
nr = 1:20,
|
||||
var = c(
|
||||
"iss01_kv1", "iss02_kv2", "iss03_kv3", "iss04_kv4",
|
||||
"iss05_ee1", "iss06_ee2", "iss07_ee3", "iss08_ee4",
|
||||
"iss09_tt1", "iss10_tt2", "iss11_tt3", "iss12_tt4",
|
||||
"iss13_na1", "iss14_na2", "iss15_na3", "iss16_na4",
|
||||
"iss17_ns1", "iss18_ns2", "iss19_ns3", "iss20_ns4"
|
||||
),
|
||||
subskala = rep(c("KV", "EE", "TT", "NA", "NS"), each = 4),
|
||||
stringsAsFactors = FALSE
|
||||
)
|
||||
|
||||
ISS20R_ANTWORTSTUFEN = c("trifft nicht zu", "trifft kaum zu", "trifft eher zu", "trifft genau zu")
|
||||
|
||||
ALTERSGRUPPEN_LABEL = c(
|
||||
bis19 = "bis 19 Jahre",
|
||||
"20_29" = "20-29 Jahre",
|
||||
"30_39" = "30-39 Jahre",
|
||||
"40_49" = "40-49 Jahre",
|
||||
ab50 = "ab 50 Jahre"
|
||||
)
|
||||
|
||||
ALTERSGRUPPEN_DATEI = c(
|
||||
bis19 = "alter_bis19.csv",
|
||||
"20_29" = "alter_20_29.csv",
|
||||
"30_39" = "alter_30_39.csv",
|
||||
"40_49" = "alter_40_49.csv",
|
||||
ab50 = "alter_ab50.csv"
|
||||
)
|
||||
|
||||
# Altersgruppe wird ausschliesslich fuer die Auswahl der Normtabelle gebraucht,
|
||||
# keine eigene inhaltliche Bedeutung ueber die Testmanual-Vorgabe hinaus.
|
||||
iss20r_altersgruppe = function(alter) {
|
||||
if (is.null(alter) || length(alter) == 0 || is.na(alter)) return(NA_character_)
|
||||
a = as.numeric(alter)
|
||||
if (is.na(a)) return(NA_character_)
|
||||
if (a <= 19) return("bis19")
|
||||
if (a <= 29) return("20_29")
|
||||
if (a <= 39) return("30_39")
|
||||
if (a <= 49) return("40_49")
|
||||
"ab50"
|
||||
}
|
||||
|
||||
# Stufe (1-4) IMMER ueber das labels-Attribut der Original-Spalte ableiten,
|
||||
# nie ueber eine angenommene Zahl-Text-Zuordnung (Kodierung kann variieren).
|
||||
iss20r_item_stufe = function(original_col, wert) {
|
||||
if (is.null(wert) || length(wert) == 0) return(NA_integer_)
|
||||
w = wert[1]
|
||||
if (is.na(w)) return(NA_integer_)
|
||||
lbl_attr = attr(original_col, "labels")
|
||||
if (!is.null(lbl_attr) && length(lbl_attr) > 0) {
|
||||
lbl_sortiert = sort(as.vector(lbl_attr))
|
||||
pos = which(lbl_sortiert == as.numeric(w))
|
||||
if (length(pos) > 0) return(as.integer(pos[1]))
|
||||
}
|
||||
if (is.factor(w)) return(as.integer(w))
|
||||
txt = gsub("\\*\\*", "", trimws(as.character(w)))
|
||||
pos = which(tolower(ISS20R_ANTWORTSTUFEN) == tolower(txt))
|
||||
if (length(pos) > 0) return(as.integer(pos[1]))
|
||||
# Letzter Fallback: numerischer Rohwert direkt als Stufe (1-4), keine Verschiebung
|
||||
# (laut Testmanual entspricht Stufe 1 direkt Rohwert 1, keine 0-Indizierung).
|
||||
as.integer(round(as.numeric(w)))
|
||||
}
|
||||
|
||||
iss20r_item_anker = function(original_col, wert) {
|
||||
if (is.null(wert) || length(wert) == 0) return(NA_character_)
|
||||
w = wert[1]
|
||||
if (is.na(w)) return(NA_character_)
|
||||
lbl_attr = attr(original_col, "labels")
|
||||
if (!is.null(lbl_attr) && length(lbl_attr) > 0) {
|
||||
pos = which(as.vector(lbl_attr) == as.numeric(w))
|
||||
if (length(pos) > 0) return(trimws(gsub("\\*\\*", "", names(lbl_attr)[pos[1]])))
|
||||
}
|
||||
if (is.factor(w)) return(trimws(gsub("\\*\\*", "", as.character(w))))
|
||||
if (is.character(w)) return(trimws(gsub("\\*\\*", "", w)))
|
||||
stufe = suppressWarnings(as.integer(round(as.numeric(w))))
|
||||
if (!is.na(stufe) && stufe >= 1L && stufe <= 4L) return(ISS20R_ANTWORTSTUFEN[stufe])
|
||||
NA_character_
|
||||
}
|
||||
|
||||
iss20r_item_label = function(original_col) {
|
||||
lbl = attr(original_col, "label")
|
||||
if (is.null(lbl) || length(lbl) == 0 || is.na(lbl[1])) return(NA_character_)
|
||||
trimws(gsub("\\*\\*", "", as.character(lbl[1])))
|
||||
}
|
||||
|
||||
# Geschlecht-Text NIE ueber hartkodierte Zahlenwerte, immer ueber das labels-Attribut.
|
||||
iss20r_geschlecht_text = function(original_col, wert) {
|
||||
if (is.null(wert) || length(wert) == 0 || is.na(wert[1])) return(NA_character_)
|
||||
lbl_attr = attr(original_col, "labels")
|
||||
if (!is.null(lbl_attr) && length(lbl_attr) > 0) {
|
||||
pos = which(as.vector(lbl_attr) == as.numeric(wert[1]))
|
||||
if (length(pos) > 0) return(names(lbl_attr)[pos[1]])
|
||||
}
|
||||
if (is.factor(wert[1])) return(as.character(wert[1]))
|
||||
as.character(wert[1])
|
||||
}
|
||||
|
||||
iss20r_geschlecht_norm = function(text) {
|
||||
if (is.null(text) || length(text) == 0 || is.na(text)) return(NA_character_)
|
||||
if (grepl("^weiblich$", text, ignore.case = TRUE)) return("weiblich")
|
||||
# Deckt "maennlich" (ae-Transliteration), "männlich" und "mannlich" ab,
|
||||
# da die Schreibweise des Umlauts je nach Sheet-Export variieren kann.
|
||||
if (grepl("^m(a|ä|ae)nnlich$", text, ignore.case = TRUE)) return("maennlich")
|
||||
NA_character_
|
||||
}
|
||||
|
||||
iss20r_klassifikation = function(summenscore) {
|
||||
# key bleibt ASCII, da er als CSS-Klassensuffix (klass-<key>) und als Lookup-Name in
|
||||
# ISS20R_KLASS_WORD_FARBEN verwendet wird; label ist der Anzeigetext mit Umlauten.
|
||||
if (isTRUE(summenscore > 59)) {
|
||||
return(list(key = "suechtig", label = "internetsüchtig", farbe = "#B71C1C"))
|
||||
}
|
||||
if (isTRUE(summenscore >= 50)) {
|
||||
return(list(key = "gefaehrdet", label = "internetsuchtgefährdet", farbe = "#E65100"))
|
||||
}
|
||||
list(key = "unauffaellig", label = "unauffällig", farbe = "#2E7D32")
|
||||
}
|
||||
|
||||
# normtabellen: benannte Liste aller 6 geladenen Normtabellen (siehe Datenaufbereitung).
|
||||
iss20r_norm_lookup = function(normtabellen, summenscore, altersgruppe, geschlecht) {
|
||||
if (is.na(altersgruppe) || is.na(geschlecht) || !(geschlecht %in% c("weiblich", "maennlich"))) {
|
||||
tab = normtabellen[["gesamt"]]
|
||||
zeile = tab[tab$rohwert == summenscore, , drop = FALSE]
|
||||
return(list(
|
||||
pr = if (nrow(zeile) > 0) suppressWarnings(as.numeric(zeile$pr_total[1])) else NA_real_,
|
||||
t = if (nrow(zeile) > 0) suppressWarnings(as.numeric(zeile$t_total[1])) else NA_real_,
|
||||
gruppe_text = "Gesamtstichprobe ohne Alters-/Geschlechtsdifferenzierung",
|
||||
fallback = TRUE
|
||||
))
|
||||
}
|
||||
tab = normtabellen[[altersgruppe]]
|
||||
zeile = tab[tab$rohwert == summenscore, , drop = FALSE]
|
||||
pr_col = paste0("pr_", geschlecht)
|
||||
t_col = paste0("t_", geschlecht)
|
||||
geschlecht_anzeige = if (geschlecht == "weiblich") "weiblich" else "männlich"
|
||||
list(
|
||||
pr = if (nrow(zeile) > 0) suppressWarnings(as.numeric(zeile[[pr_col]][1])) else NA_real_,
|
||||
t = if (nrow(zeile) > 0) suppressWarnings(as.numeric(zeile[[t_col]][1])) else NA_real_,
|
||||
gruppe_text = paste0(ALTERSGRUPPEN_LABEL[[altersgruppe]], ", ", geschlecht_anzeige),
|
||||
fallback = FALSE
|
||||
)
|
||||
}
|
||||
|
||||
make_gauge_iss20r = function(score) {
|
||||
ggplot() +
|
||||
geom_rect(aes(xmin = 20, xmax = 50, ymin = 0, ymax = 1), fill = "#E8F5E9", color = NA) +
|
||||
geom_rect(aes(xmin = 50, xmax = 60, ymin = 0, ymax = 1), fill = "#FFF3E0", color = NA) +
|
||||
geom_rect(aes(xmin = 60, xmax = 80, ymin = 0, ymax = 1), fill = "#FFEBEE", color = NA) +
|
||||
geom_rect(aes(xmin = 20, xmax = 80, ymin = 0, ymax = 1), fill = NA, color = "#9E9E9E", linewidth = 0.6) +
|
||||
geom_vline(xintercept = 50, color = "#E65100", linetype = "dashed", linewidth = 0.8) +
|
||||
geom_vline(xintercept = 60, color = "#B71C1C", linetype = "dashed", linewidth = 0.8) +
|
||||
geom_segment(aes(x = score, xend = score, y = -0.25, yend = 1.25),
|
||||
color = AKZENT_FARBE, linewidth = 2.5) +
|
||||
geom_label(aes(x = score, y = 1.6, label = paste0("Score: ", score)),
|
||||
fill = AKZENT_FARBE, color = "white", fontface = "bold",
|
||||
linewidth = 0, size = 4) +
|
||||
annotate("text", x = 35, y = 0.5, label = "unauffällig",
|
||||
color = "#2E7D32", size = 3.3, fontface = "italic") +
|
||||
annotate("text", x = 55, y = 0.5, label = "gefährdet",
|
||||
color = "#E65100", size = 3.3, fontface = "italic") +
|
||||
annotate("text", x = 70, y = 0.5, label = "süchtig",
|
||||
color = "#B71C1C", size = 3.3, fontface = "italic") +
|
||||
scale_x_continuous(limits = c(17, 83), breaks = c(20, 30, 40, 50, 60, 70, 80)) +
|
||||
scale_y_continuous(limits = c(-0.8, 2.0)) +
|
||||
theme_minimal(base_size = 12) +
|
||||
theme(
|
||||
axis.text.y = element_blank(),
|
||||
axis.ticks.y = element_blank(),
|
||||
panel.grid.major.y = element_blank(),
|
||||
panel.grid.minor = element_blank(),
|
||||
axis.title.y = element_blank(),
|
||||
plot.margin = margin(t = 5, r = 10, b = 5, l = 10)
|
||||
) +
|
||||
labs(x = "ISS-20r Summenscore (20-80)", y = NULL)
|
||||
}
|
||||
|
||||
|
||||
# Datenaufbereitung ####
|
||||
|
||||
iss20r_lade_normtabellen = function(ordner) {
|
||||
normtabellen = list()
|
||||
for (ag in names(ALTERSGRUPPEN_DATEI)) {
|
||||
normtabellen[[ag]] = read.csv(
|
||||
file.path(ordner, ALTERSGRUPPEN_DATEI[[ag]]),
|
||||
stringsAsFactors = FALSE
|
||||
)
|
||||
}
|
||||
normtabellen[["gesamt"]] = read.csv(
|
||||
file.path(ordner, "gesamt_ohne_altersdifferenzierung.csv"),
|
||||
stringsAsFactors = FALSE
|
||||
)
|
||||
normtabellen
|
||||
}
|
||||
|
||||
ISS20R_NORMTABELLEN = iss20r_lade_normtabellen(PFAD_NORMTABELLEN)
|
||||
|
||||
|
||||
# UI ####
|
||||
|
||||
app_css = "
|
||||
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f5f5f5; }
|
||||
.app-header {
|
||||
background: #8B2635; color: white; padding: 18px 24px 14px;
|
||||
margin-bottom: 20px; border-radius: 0 0 6px 6px;
|
||||
}
|
||||
.app-header h2 { margin: 0; font-size: 1.5rem; font-weight: 600; }
|
||||
.app-header p { margin: 4px 0 0; opacity: 0.85; font-size: 0.9rem; }
|
||||
.input-panel {
|
||||
background: white; border-radius: 6px; padding: 16px 20px;
|
||||
margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.12);
|
||||
display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
|
||||
}
|
||||
.input-panel .form-group { margin-bottom: 0; }
|
||||
.input-panel label { font-weight: 600; color: #333; }
|
||||
.btn-laden {
|
||||
background: #8B2635 !important; color: white !important;
|
||||
border: none !important; border-radius: 4px !important;
|
||||
padding: 8px 20px !important; font-weight: 600 !important; cursor: pointer;
|
||||
}
|
||||
.btn-laden:hover { background: #6d1e29 !important; }
|
||||
.alert-fehler {
|
||||
background: #FFEBEE; border-left: 5px solid #C62828;
|
||||
padding: 12px 16px; border-radius: 4px; color: #B71C1C;
|
||||
margin-bottom: 12px; font-weight: 500;
|
||||
}
|
||||
.alert-warnung {
|
||||
background: #FFF3E0; border-left: 5px solid #E65100;
|
||||
padding: 10px 16px; border-radius: 4px; color: #BF360C;
|
||||
margin-bottom: 12px; font-size: 0.93em; font-weight: 500;
|
||||
}
|
||||
.hinweis-box {
|
||||
background: #F5F5F5; border-left: 5px solid #9E9E9E;
|
||||
padding: 12px 16px; border-radius: 4px; color: #555;
|
||||
margin-bottom: 12px; font-size: 0.88em; line-height: 1.55;
|
||||
}
|
||||
.hinweis-box p { margin: 4px 0; }
|
||||
.abschnitt-karte {
|
||||
background: white; border-radius: 6px; padding: 20px 24px;
|
||||
margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.12);
|
||||
}
|
||||
.abschnitt-titel {
|
||||
color: #8B2635; font-size: 1.15rem; font-weight: 700;
|
||||
border-bottom: 2px solid #8B2635; padding-bottom: 8px; margin-bottom: 14px;
|
||||
}
|
||||
.meta-block { margin-bottom: 10px; color: #555; font-size: 0.95em; }
|
||||
.meta-block strong { color: #222; }
|
||||
.kontext-zeile {
|
||||
display: flex; gap: 8px; align-items: baseline;
|
||||
padding: 4px 0; color: #444; font-size: 0.93em;
|
||||
}
|
||||
.kontext-label { font-weight: 600; color: #333; min-width: 140px; }
|
||||
.score-zahl { font-size: 2.2rem; font-weight: 800; color: #8B2635; }
|
||||
.cutoff-info { font-size: 0.95em; margin-top: 4px; }
|
||||
.klass-unauffaellig { color: #2E7D32; font-weight: 700; }
|
||||
.klass-gefaehrdet { color: #E65100; font-weight: 700; }
|
||||
.klass-suechtig { color: #B71C1C; font-weight: 700; }
|
||||
.norm-info { font-size: 0.88em; color: #666; margin-top: 6px; }
|
||||
.subskala-zeile {
|
||||
display: flex; align-items: center; gap: 10px; padding: 6px 0;
|
||||
}
|
||||
.subskala-label { min-width: 300px; font-size: 0.92em; color: #333; font-weight: 600; }
|
||||
.subskala-balken {
|
||||
flex: 1; background: #F0F0F0; border-radius: 4px; height: 14px; overflow: hidden;
|
||||
}
|
||||
.subskala-fuellung { background: #8B2635; height: 100%; }
|
||||
.subskala-wert { min-width: 60px; text-align: right; font-size: 0.9em; color: #555; }
|
||||
.subskala-hinweis { font-size: 0.85em; color: #888; font-style: italic; margin-top: 8px; }
|
||||
.subskala-titel-item {
|
||||
color: #8B2635; font-weight: 700; margin-top: 16px; margin-bottom: 4px;
|
||||
font-size: 0.95em; border-bottom: 1px solid #eee; padding-bottom: 3px;
|
||||
}
|
||||
.item-zeile {
|
||||
display: flex; align-items: flex-start; gap: 10px;
|
||||
padding: 7px 0; border-bottom: 1px solid #F0F0F0;
|
||||
}
|
||||
.item-nr { font-weight: 600; color: #8B2635; min-width: 26px; flex-shrink: 0; }
|
||||
.item-text { flex: 1; color: #333; font-size: 0.92em; }
|
||||
.stufe-badge {
|
||||
border-radius: 4px; padding: 2px 9px; font-weight: 700;
|
||||
font-size: 0.82em; white-space: nowrap; display: inline-block; flex-shrink: 0;
|
||||
}
|
||||
.stufe-badge-1 { background: #4CAF50; color: white; }
|
||||
.stufe-badge-2 { background: #F48FB1; color: #333333; }
|
||||
.stufe-badge-3 { background: #EF5350; color: white; }
|
||||
.stufe-badge-4 { background: #B71C1C; color: white; }
|
||||
"
|
||||
|
||||
app_css = gsub("#8B2635", AKZENT_FARBE, app_css, fixed = TRUE)
|
||||
|
||||
ui = fluidPage(
|
||||
tags$head(
|
||||
tags$meta(charset = "UTF-8"),
|
||||
tags$style(HTML(app_css))
|
||||
),
|
||||
|
||||
div(class = "app-header",
|
||||
tags$h2("ISS-20r – Internetsuchtskala (revidiert)"),
|
||||
tags$p("20 Items, 5 Subskalen | Screening, kein diagnostisches Instrument")
|
||||
),
|
||||
|
||||
div(class = "container-fluid",
|
||||
|
||||
div(class = "input-panel",
|
||||
div(style = "min-width: 360px; white-space: nowrap;",
|
||||
textInput("pseudonym",
|
||||
label = tagList(
|
||||
"Pseudonym",
|
||||
tags$span(style = "font-weight: normal; font-style: italic; font-size: 0.78em; color: #888; margin-left: 4px; white-space: nowrap;",
|
||||
"optional, hat Vorrang vor Chiffre")
|
||||
),
|
||||
placeholder = "optional", width = "340px")
|
||||
),
|
||||
div(style = "min-width: 200px;",
|
||||
textInput("chiffre", label = "Patientenchiffre",
|
||||
placeholder = "z.B. P000123", width = "100%")
|
||||
),
|
||||
actionButton("btn_suchen", "Auswerten", class = "btn btn-primary btn-laden"),
|
||||
div(style = "margin-left: auto;",
|
||||
downloadButton("download_word", "Word-Export (.docx)")
|
||||
)
|
||||
),
|
||||
|
||||
uiOutput("fehler_ui"),
|
||||
uiOutput("warnung_ui"),
|
||||
uiOutput("ergebnis_ui")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
# Word-Export ####
|
||||
|
||||
erstelle_iss20r_docx = function(erg) {
|
||||
doc = read_docx()
|
||||
|
||||
fp_titel = fp_text(color = AKZENT_FARBE, bold = TRUE, font.size = 18)
|
||||
fp_abschnitt = fp_text(color = AKZENT_FARBE, bold = TRUE, font.size = 13)
|
||||
fp_label = fp_text(bold = TRUE, font.size = 11)
|
||||
fp_normal = fp_text(font.size = 11)
|
||||
fp_klein = fp_text(font.size = 9, italic = TRUE, color = "#777777")
|
||||
fp_disclaimer = fp_text(font.size = 9, italic = TRUE, color = "#777777")
|
||||
|
||||
klass_farben = ISS20R_KLASS_WORD_FARBEN[[erg$klass$key]]
|
||||
fp_klass = fp_text(bold = TRUE, font.size = 12,
|
||||
color = klass_farben$text, shading.color = klass_farben$bg)
|
||||
|
||||
doc = body_add_fpar(doc, fpar(ftext("ISS-20r – Auswertung", fp_titel)))
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext("Chiffre: ", fp_label), ftext(erg$chiffre, fp_normal),
|
||||
ftext(" Ausfülldatum: ", fp_label), ftext(erg$ausfuelldatum, fp_normal)
|
||||
))
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext("Alter: ", fp_label),
|
||||
ftext(if (is.na(erg$alter_num)) "k. A." else as.character(erg$alter_num), fp_normal),
|
||||
ftext(" Geschlecht: ", fp_label),
|
||||
ftext(if (is.na(erg$geschlecht_anzeige)) "k. A." else erg$geschlecht_anzeige, fp_normal)
|
||||
))
|
||||
if (!is.null(erg$info_mehrere)) {
|
||||
doc = body_add_fpar(doc, fpar(ftext(erg$info_mehrere, fp_klein)))
|
||||
}
|
||||
doc = body_add_par(doc, "", style = "Normal")
|
||||
|
||||
doc = body_add_fpar(doc, fpar(ftext("Gesamtskala", fp_abschnitt)))
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext("Summenscore: ", fp_label),
|
||||
ftext(paste0(erg$gesamtscore, " / 80"), fp_normal)
|
||||
))
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext(paste0(toupper(substr(erg$klass$label, 1, 1)), substr(erg$klass$label, 2, nchar(erg$klass$label))),
|
||||
fp_klass)
|
||||
))
|
||||
pr_txt = if (is.na(erg$norm$pr)) "k. A." else sprintf("%.1f", erg$norm$pr)
|
||||
t_txt = if (is.na(erg$norm$t)) "k. A." else sprintf("%.1f", erg$norm$t)
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext(paste0("Prozentrang: ", pr_txt, " T-Wert: ", t_txt), fp_normal)
|
||||
))
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext(paste0("Verwendete Norm-Untergruppe: ", erg$norm$gruppe_text), fp_klein)
|
||||
))
|
||||
doc = body_add_par(doc, "", style = "Normal")
|
||||
|
||||
doc = body_add_fpar(doc, fpar(ftext("Subskalen (Rohwerte, kein Normvergleich verfügbar)", fp_abschnitt)))
|
||||
for (i in seq_len(nrow(ISS20R_SUBSKALEN))) {
|
||||
kurz = ISS20R_SUBSKALEN$kurz[i]
|
||||
name = ISS20R_SUBSKALEN$name[i]
|
||||
wert = erg$subskalen_werte[[kurz]]
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext(paste0(kurz, " – ", name, ": "), fp_label),
|
||||
ftext(paste0(wert, " / 16"), fp_normal)
|
||||
))
|
||||
}
|
||||
doc = body_add_par(doc, "", style = "Normal")
|
||||
|
||||
doc = body_add_fpar(doc, fpar(ftext(ISS20R_HINWEIS_CUTOFF, fp_klein)))
|
||||
doc = body_add_par(doc, "", style = "Normal")
|
||||
doc = body_add_fpar(doc, fpar(ftext(ISS20R_HINWEIS_NORMBASIS, fp_klein)))
|
||||
doc = body_add_par(doc, "", style = "Normal")
|
||||
|
||||
doc = body_add_fpar(doc, fpar(ftext("Einzelitems", fp_abschnitt)))
|
||||
for (sk_i in seq_len(nrow(ISS20R_SUBSKALEN))) {
|
||||
kurz = ISS20R_SUBSKALEN$kurz[sk_i]
|
||||
name = ISS20R_SUBSKALEN$name[sk_i]
|
||||
doc = body_add_fpar(doc, fpar(ftext(paste0(kurz, " – ", name), fp_label)))
|
||||
|
||||
vars = ISS20R_ITEMS$var[ISS20R_ITEMS$subskala == kurz]
|
||||
nrs = ISS20R_ITEMS$nr[ISS20R_ITEMS$subskala == kurz]
|
||||
for (j in seq_along(vars)) {
|
||||
v = vars[j]
|
||||
nr = nrs[j]
|
||||
stufe = erg$item_stufen[[v]]
|
||||
anker = erg$item_anker[[v]]
|
||||
stufe_key = if (!is.na(stufe) && stufe >= 1L && stufe <= 4L) as.character(stufe) else "1"
|
||||
anker_txt = if (!is.na(anker)) anker else ISS20R_ANTWORTSTUFEN[as.integer(stufe_key)]
|
||||
item_txt = if (!is.na(erg$item_texte[[v]])) erg$item_texte[[v]] else paste0("Item ", nr)
|
||||
|
||||
fp_badge = fp_text(
|
||||
color = ISS20R_BADGE_TEXT_FARBEN[[stufe_key]],
|
||||
bold = TRUE,
|
||||
shading.color = ISS20R_BADGE_FARBEN[[stufe_key]],
|
||||
font.size = 10
|
||||
)
|
||||
doc = body_add_fpar(doc, fpar(
|
||||
ftext(paste0(nr, ". ", item_txt, " "), fp_normal),
|
||||
ftext(paste0(" ", anker_txt, " "), fp_badge)
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
doc = body_add_par(doc, "", style = "Normal")
|
||||
doc = body_add_fpar(doc, fpar(ftext(ISS20R_DISCLAIMER, fp_disclaimer)))
|
||||
|
||||
doc
|
||||
}
|
||||
|
||||
|
||||
# Server ####
|
||||
|
||||
server = function(input, output, session) {
|
||||
# --- pseudonym-support-injection v1 ---
|
||||
observe({
|
||||
query = parseQueryString(session$clientData$url_search)
|
||||
if (!is.null(query$pseudonym) && nchar(trimws(query$pseudonym)) > 0) {
|
||||
updateTextInput(session, "pseudonym", value = trimws(query$pseudonym))
|
||||
}
|
||||
})
|
||||
|
||||
observe({
|
||||
query = parseQueryString(session$clientData$url_search)
|
||||
if (!is.null(query$chiffre) && nchar(trimws(query$chiffre)) > 0) {
|
||||
updateTextInput(session, "chiffre", value = toupper(trimws(query$chiffre)))
|
||||
}
|
||||
})
|
||||
|
||||
ergebnis_r = eventReactive(input$btn_suchen, {
|
||||
|
||||
chiffre = toupper(trimws(input$chiffre))
|
||||
|
||||
if ((nchar(trimws(input$pseudonym)) == 0 && nchar(chiffre) == 0)) {
|
||||
return(list(error = "Bitte eine Patientenchiffre eingeben."))
|
||||
}
|
||||
if (!(nchar(trimws(input$pseudonym)) > 0 || grepl("^[A-Z][0-9]{6}$", chiffre))) {
|
||||
return(list(error = paste0(
|
||||
"Ungültige Chiffre. Erwartet: ein Grossbuchstabe + 6 Ziffern (z.B. P000123).")))
|
||||
}
|
||||
|
||||
if (!file.exists(PFAD_DOWNLOAD_SKRIPT)) {
|
||||
return(list(error = paste0(
|
||||
"Download-Skript nicht gefunden:\n", PFAD_DOWNLOAD_SKRIPT)))
|
||||
}
|
||||
if (!file.exists(PFAD_PSEUDONYM_SKRIPT)) {
|
||||
return(list(error = paste0(
|
||||
"Pseudonym-Skript nicht gefunden:\n", PFAD_PSEUDONYM_SKRIPT)))
|
||||
}
|
||||
|
||||
res_dl = tryCatch({
|
||||
source(PFAD_DOWNLOAD_SKRIPT, local = FALSE)
|
||||
list(ok = TRUE)
|
||||
}, error = function(e) list(ok = FALSE, msg = e$message))
|
||||
if (!res_dl$ok) return(list(error = paste0("Fehler im Download-Skript: ", res_dl$msg)))
|
||||
|
||||
db_ordner = local({
|
||||
ordner = dirname(normalizePath(PFAD_PSEUDONYM_SKRIPT, mustWork = FALSE))
|
||||
gefunden = NULL
|
||||
for (i in 1:5) {
|
||||
if (file.exists(file.path(ordner, "pseudonyme.db"))) {
|
||||
gefunden = ordner
|
||||
break
|
||||
}
|
||||
elternteil = dirname(ordner)
|
||||
if (elternteil == ordner) break
|
||||
ordner = elternteil
|
||||
}
|
||||
gefunden
|
||||
})
|
||||
|
||||
alter_wd = getwd()
|
||||
wd_ziel = if (!is.null(db_ordner)) db_ordner else
|
||||
dirname(normalizePath(PFAD_PSEUDONYM_SKRIPT, mustWork = FALSE))
|
||||
setwd(wd_ziel)
|
||||
on.exit(setwd(alter_wd), add = TRUE)
|
||||
|
||||
res_ps = tryCatch({
|
||||
source(PFAD_PSEUDONYM_SKRIPT, local = FALSE)
|
||||
if (nchar(trimws(input$pseudonym)) > 0) {
|
||||
.pw_wert = trimws(input$pseudonym)
|
||||
.pw_tab = get("pseudo", envir = .GlobalEnv)
|
||||
.pw_treffer = .pw_tab[.pw_tab$pseudonym == .pw_wert, ]
|
||||
if (nrow(.pw_treffer) > 0) chiffre = toupper(trimws(.pw_treffer$chiffre[1]))
|
||||
}
|
||||
list(ok = TRUE)
|
||||
}, error = function(e) list(ok = FALSE, msg = e$message))
|
||||
if (!res_ps$ok) return(list(error = paste0("Fehler im Pseudonym-Skript: ", res_ps$msg)))
|
||||
|
||||
if (!exists("daten_iss20r", envir = .GlobalEnv)) {
|
||||
return(list(error = paste0(
|
||||
"Objekt 'daten_iss20r' nach dem Sourcen nicht gefunden. Bitte Download-Skript prüfen.")))
|
||||
}
|
||||
if (!exists("pseudo", envir = .GlobalEnv)) {
|
||||
return(list(error = paste0(
|
||||
"Objekt 'pseudo' nach dem Sourcen nicht gefunden. Bitte Pseudonym-Skript prüfen.")))
|
||||
}
|
||||
|
||||
daten = get("daten_iss20r", envir = .GlobalEnv)
|
||||
pseudo_df = get("pseudo", envir = .GlobalEnv)
|
||||
|
||||
treffer_ps = pseudo_df[pseudo_df$chiffre == chiffre, ]
|
||||
if (nrow(treffer_ps) == 0) {
|
||||
return(list(error = paste0(
|
||||
"Chiffre '", chiffre, "' wurde in der Pseudonym-Datenbank nicht gefunden.")))
|
||||
}
|
||||
alle_session_ids = unique(treffer_ps$pseudonym)
|
||||
if (nchar(trimws(input$pseudonym)) > 0) alle_session_ids = trimws(input$pseudonym)
|
||||
|
||||
treffer_dat = daten[daten$session %in% alle_session_ids, ]
|
||||
if (nrow(treffer_dat) == 0) {
|
||||
return(list(error = paste0(
|
||||
"Kein ISS-20r-Datensatz für Chiffre '", chiffre, "' gefunden. ",
|
||||
"(", length(alle_session_ids), " Pseudonym(e) geprüft)")))
|
||||
}
|
||||
|
||||
warnungen = character(0)
|
||||
if (nrow(treffer_dat) > 1) {
|
||||
n = nrow(treffer_dat)
|
||||
treffer_dat = treffer_dat[order(treffer_dat$created, decreasing = TRUE), ]
|
||||
datum_neu = tryCatch(
|
||||
format(as.POSIXct(treffer_dat$created[1]), "%d.%m.%Y %H:%M"),
|
||||
error = function(e) "unbekanntes Datum"
|
||||
)
|
||||
warnungen = c(warnungen, paste0(
|
||||
"Mehrere Ausfüllungen gefunden (", n, " Einträge). ",
|
||||
"Angezeigt wird die neueste vom ", datum_neu, "."
|
||||
))
|
||||
treffer_dat = treffer_dat[1, , drop = FALSE]
|
||||
}
|
||||
|
||||
zeile = treffer_dat[1, , drop = FALSE]
|
||||
|
||||
ausfuelldatum = tryCatch(
|
||||
format(as.POSIXct(zeile[["created"]][1]), "%d.%m.%Y"),
|
||||
error = function(e) format(Sys.Date(), "%d.%m.%Y")
|
||||
)
|
||||
|
||||
alter_num = suppressWarnings(as.numeric(zeile[["alter"]][1]))
|
||||
altersgruppe = iss20r_altersgruppe(alter_num)
|
||||
|
||||
geschlecht_anzeige = iss20r_geschlecht_text(daten[["geschlecht"]], zeile[["geschlecht"]])
|
||||
geschlecht_norm = iss20r_geschlecht_norm(geschlecht_anzeige)
|
||||
|
||||
item_stufen = setNames(
|
||||
sapply(ISS20R_ITEMS$var, function(v) iss20r_item_stufe(daten[[v]], zeile[[v]])),
|
||||
ISS20R_ITEMS$var
|
||||
)
|
||||
item_anker = setNames(
|
||||
sapply(ISS20R_ITEMS$var, function(v) iss20r_item_anker(daten[[v]], zeile[[v]])),
|
||||
ISS20R_ITEMS$var
|
||||
)
|
||||
item_texte = setNames(
|
||||
sapply(ISS20R_ITEMS$var, function(v) iss20r_item_label(daten[[v]])),
|
||||
ISS20R_ITEMS$var
|
||||
)
|
||||
|
||||
gesamtscore = sum(item_stufen, na.rm = TRUE)
|
||||
|
||||
subskalen_werte = setNames(
|
||||
sapply(ISS20R_SUBSKALEN$kurz, function(sk) {
|
||||
vars = ISS20R_ITEMS$var[ISS20R_ITEMS$subskala == sk]
|
||||
sum(item_stufen[vars], na.rm = TRUE)
|
||||
}),
|
||||
ISS20R_SUBSKALEN$kurz
|
||||
)
|
||||
|
||||
klass = iss20r_klassifikation(gesamtscore)
|
||||
norm = iss20r_norm_lookup(ISS20R_NORMTABELLEN, gesamtscore, altersgruppe, geschlecht_norm)
|
||||
|
||||
if (isTRUE(norm$fallback)) {
|
||||
warnungen = c(warnungen, paste0(
|
||||
"Alter und/oder Geschlecht konnten nicht eindeutig zugeordnet werden. ",
|
||||
"Es wurde die Gesamtstichprobe ohne Alters-/Geschlechtsdifferenzierung als Norm verwendet."
|
||||
))
|
||||
}
|
||||
|
||||
list(
|
||||
chiffre = chiffre,
|
||||
ausfuelldatum = ausfuelldatum,
|
||||
info_mehrere = if (length(warnungen) > 0) warnungen[1] else NULL,
|
||||
warnungen = warnungen,
|
||||
alter_num = alter_num,
|
||||
geschlecht_anzeige = geschlecht_anzeige,
|
||||
item_stufen = item_stufen,
|
||||
item_anker = item_anker,
|
||||
item_texte = item_texte,
|
||||
gesamtscore = gesamtscore,
|
||||
subskalen_werte = subskalen_werte,
|
||||
klass = klass,
|
||||
norm = norm,
|
||||
error = NULL
|
||||
)
|
||||
})
|
||||
|
||||
output$fehler_ui = renderUI({
|
||||
req(input$btn_suchen)
|
||||
d = ergebnis_r()
|
||||
if (!is.null(d$error)) div(class = "alert-fehler", d$error)
|
||||
})
|
||||
|
||||
output$warnung_ui = renderUI({
|
||||
req(input$btn_suchen)
|
||||
d = ergebnis_r()
|
||||
if (!is.null(d$error) || length(d$warnungen) == 0) return(NULL)
|
||||
tagList(lapply(d$warnungen, function(w) div(class = "alert-warnung", w)))
|
||||
})
|
||||
|
||||
output$ergebnis_ui = renderUI({
|
||||
req(input$btn_suchen)
|
||||
d = ergebnis_r()
|
||||
if (!is.null(d$error)) return(NULL)
|
||||
|
||||
klass_css = paste0("klass-", d$klass$key)
|
||||
pr_txt = if (is.na(d$norm$pr)) "k. A." else sprintf("%.1f", d$norm$pr)
|
||||
t_txt = if (is.na(d$norm$t)) "k. A." else sprintf("%.1f", d$norm$t)
|
||||
|
||||
subskalen_ui = lapply(seq_len(nrow(ISS20R_SUBSKALEN)), function(i) {
|
||||
kurz = ISS20R_SUBSKALEN$kurz[i]
|
||||
name = ISS20R_SUBSKALEN$name[i]
|
||||
wert = d$subskalen_werte[[kurz]]
|
||||
pct = max(0, min(100, (wert - 4) / (16 - 4) * 100))
|
||||
div(class = "subskala-zeile",
|
||||
div(class = "subskala-label", paste0(kurz, " – ", name)),
|
||||
div(class = "subskala-balken",
|
||||
div(class = "subskala-fuellung", style = paste0("width:", pct, "%;"))
|
||||
),
|
||||
div(class = "subskala-wert", paste0(wert, " / 16"))
|
||||
)
|
||||
})
|
||||
|
||||
items_ui = lapply(seq_len(nrow(ISS20R_SUBSKALEN)), function(sk_i) {
|
||||
kurz = ISS20R_SUBSKALEN$kurz[sk_i]
|
||||
name = ISS20R_SUBSKALEN$name[sk_i]
|
||||
vars = ISS20R_ITEMS$var[ISS20R_ITEMS$subskala == kurz]
|
||||
nrs = ISS20R_ITEMS$nr[ISS20R_ITEMS$subskala == kurz]
|
||||
|
||||
zeilen = lapply(seq_along(vars), function(j) {
|
||||
v = vars[j]
|
||||
nr = nrs[j]
|
||||
stufe = d$item_stufen[[v]]
|
||||
anker = d$item_anker[[v]]
|
||||
sk_key = if (!is.na(stufe) && stufe >= 1L && stufe <= 4L) as.character(stufe) else "1"
|
||||
anker_txt = if (!is.na(anker)) anker else ISS20R_ANTWORTSTUFEN[as.integer(sk_key)]
|
||||
item_txt = if (!is.na(d$item_texte[[v]])) d$item_texte[[v]] else paste0("Item ", nr)
|
||||
|
||||
div(class = "item-zeile",
|
||||
div(class = "item-nr", paste0(nr, ".")),
|
||||
div(class = "item-text", item_txt),
|
||||
span(class = paste0("stufe-badge stufe-badge-", sk_key), anker_txt)
|
||||
)
|
||||
})
|
||||
|
||||
tagList(
|
||||
div(class = "subskala-titel-item", paste0(kurz, " – ", name)),
|
||||
zeilen
|
||||
)
|
||||
})
|
||||
|
||||
div(class = "abschnitt-karte",
|
||||
div(class = "abschnitt-titel", "ISS-20r"),
|
||||
|
||||
div(class = "meta-block",
|
||||
tags$strong("Chiffre: "), d$chiffre,
|
||||
tags$span(" | ", style = "color:#ccc;"),
|
||||
tags$strong("Ausfülldatum: "), d$ausfuelldatum,
|
||||
tags$span(" | ", style = "color:#ccc;"),
|
||||
tags$strong("Alter: "), if (is.na(d$alter_num)) "k. A." else d$alter_num,
|
||||
tags$span(" | ", style = "color:#ccc;"),
|
||||
tags$strong("Geschlecht: "), if (is.na(d$geschlecht_anzeige)) "k. A." else d$geschlecht_anzeige
|
||||
),
|
||||
|
||||
tags$hr(),
|
||||
|
||||
fluidRow(
|
||||
column(3,
|
||||
div(
|
||||
div(class = "score-zahl", d$gesamtscore),
|
||||
div("Summenscore (20-80)", style = "color:#555;"),
|
||||
div(class = "cutoff-info",
|
||||
span(class = klass_css, tools::toTitleCase(d$klass$label))
|
||||
),
|
||||
div(class = "norm-info",
|
||||
paste0("Prozentrang: ", pr_txt, " T-Wert: ", t_txt)
|
||||
),
|
||||
div(class = "norm-info", d$norm$gruppe_text)
|
||||
)
|
||||
),
|
||||
column(9, plotOutput("gauge_plot", height = "160px"))
|
||||
),
|
||||
|
||||
tags$hr(),
|
||||
|
||||
tags$h5("Subskalen"),
|
||||
div(subskalen_ui),
|
||||
div(class = "subskala-hinweis", "Rohwert je Subskala (4-16), kein Normvergleich verfügbar."),
|
||||
|
||||
tags$hr(),
|
||||
|
||||
div(class = "hinweis-box",
|
||||
tags$p(ISS20R_HINWEIS_CUTOFF),
|
||||
tags$p(ISS20R_HINWEIS_NORMBASIS)
|
||||
),
|
||||
|
||||
tags$hr(),
|
||||
|
||||
tags$h5("Einzelitems"),
|
||||
div(items_ui)
|
||||
)
|
||||
})
|
||||
|
||||
output$gauge_plot = renderPlot({
|
||||
req(input$btn_suchen)
|
||||
d = ergebnis_r()
|
||||
req(is.null(d$error))
|
||||
make_gauge_iss20r(d$gesamtscore)
|
||||
}, bg = "transparent")
|
||||
|
||||
output$download_word = downloadHandler(
|
||||
filename = function() {
|
||||
d = tryCatch(ergebnis_r(), error = function(e) NULL)
|
||||
chiffre_esc = if (is.list(d) && is.null(d$error) && nchar(d$chiffre) > 0)
|
||||
d$chiffre else "export"
|
||||
ausfuelldatum_fn = if (is.list(d) && is.null(d$error) && !is.null(d$ausfuelldatum))
|
||||
tryCatch(
|
||||
format(as.Date(d$ausfuelldatum, "%d.%m.%Y"), "%Y%m%d"),
|
||||
error = function(e) format(Sys.Date(), "%Y%m%d")
|
||||
)
|
||||
else
|
||||
format(Sys.Date(), "%Y%m%d")
|
||||
paste0("ISS20R_", chiffre_esc, "_", ausfuelldatum_fn, ".docx")
|
||||
},
|
||||
content = function(file) {
|
||||
d = tryCatch(ergebnis_r(), error = function(e) NULL)
|
||||
daten_ok = is.list(d) && is.null(d$error)
|
||||
if (!daten_ok) {
|
||||
doc = read_docx()
|
||||
doc = body_add_par(doc,
|
||||
"Kein Datensatz geladen. Bitte zuerst Chiffre eingeben und 'Auswerten' klicken.",
|
||||
style = "Normal")
|
||||
print(doc, target = file)
|
||||
return()
|
||||
}
|
||||
doc = tryCatch(
|
||||
erstelle_iss20r_docx(d),
|
||||
error = function(e) {
|
||||
err_doc = read_docx()
|
||||
body_add_par(err_doc,
|
||||
paste0("Fehler beim Erstellen des Word-Dokuments: ", e$message),
|
||||
style = "Normal")
|
||||
}
|
||||
)
|
||||
print(doc, target = file)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
# Start ####
|
||||
|
||||
shinyApp(ui, server)
|
||||
62
ISS20r/normtabellen/alter_20_29.csv
Normal file
62
ISS20r/normtabellen/alter_20_29.csv
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
rohwert,pr_gesamt,t_gesamt,pr_maennlich,t_maennlich,pr_weiblich,t_weiblich
|
||||
20,1.8,36.0,1.1,35.4,4.9,38.5
|
||||
21,4.2,37.0,3.2,36.4,8.7,39.5
|
||||
22,7.4,38.0,6.1,37.4,13.4,40.4
|
||||
23,11.6,39.0,9.7,38.4,20.3,41.3
|
||||
24,15.6,40.0,13.1,39.4,26.8,42.3
|
||||
25,20.4,41.0,17.6,40.4,33.2,43.2
|
||||
26,25.6,42.0,22.9,41.4,37.9,44.2
|
||||
27,29.9,43.0,27.1,42.4,42.2,45.1
|
||||
28,34.9,43.9,32.0,43.4,47.6,46.1
|
||||
29,39.3,45.0,36.6,44.5,51.6,47.0
|
||||
30,44.3,46.0,41.8,45.5,55.4,48.0
|
||||
31,49.0,47.0,46.7,46.5,59.6,48.9
|
||||
32,52.9,48.0,50.6,47.5,63.6,49.9
|
||||
33,56.3,49.0,54.2,48.5,65.2,50.8
|
||||
34,60.0,50.0,58.4,49.5,67.0,51.8
|
||||
35,63.4,51.0,62.0,50.5,70.1,52.7
|
||||
36,66.6,52.0,65.2,51.6,73.0,53.7
|
||||
37,69.3,52.9,68.1,52.6,74.6,54.6
|
||||
38,72.2,53.9,71.2,53.6,76.6,55.5
|
||||
39,75.2,54.9,74.3,54.6,79.2,56.5
|
||||
40,77.4,55.9,76.7,55.6,80.8,57.4
|
||||
41,79.6,56.9,79.0,56.6,82.6,58.4
|
||||
42,81.6,57.9,81.0,57.6,84.4,59.3
|
||||
43,84.0,58.9,83.5,58.6,86.1,60.3
|
||||
44,85.8,59.9,85.4,59.7,87.5,61.2
|
||||
45,86.7,60.9,86.2,60.7,88.6,62.2
|
||||
46,88.7,61.9,88.2,61.7,90.8,63.1
|
||||
47,89.7,62.9,89.2,62.7,91.8,64.1
|
||||
48,90.3,63.9,89.9,63.7,92.4,65.0
|
||||
49,91.4,64.9,91.0,64.7,92.9,66.0
|
||||
50,92.4,65.9,92.1,65.7,94.0,66.9
|
||||
51,93.1,66.9,92.8,66.7,94.4,67.9
|
||||
52,93.8,67.9,93.6,67.7,94.6,68.8
|
||||
53,94.6,68.9,94.4,68.8,95.1,69.8
|
||||
54,95.1,69.9,95.0,69.8,95.5,70.7
|
||||
55,95.6,70.9,95.7,70.8,95.5,71.6
|
||||
56,96.1,71.9,96.2,71.8,95.7,72.6
|
||||
57,96.8,72.9,96.8,72.8,96.4,73.5
|
||||
58,97.2,73.9,97.3,73.8,96.6,74.5
|
||||
59,97.6,74.9,97.8,74.8,96.7,75.4
|
||||
60,98.0,75.9,98.1,75.8,97.5,76.4
|
||||
61,98.3,76.8,98.5,76.9,97.6,77.3
|
||||
62,98.6,77.8,98.7,77.9,98.0,78.3
|
||||
63,98.9,78.8,98.9,78.9,98.4,79.2
|
||||
64,99.0,79.8,99.1,79.9,98.6,80.2
|
||||
65,99.2,80.8,99.3,80.9,98.6,81.1
|
||||
66,99.3,81.8,99.5,81.9,98.7,82.1
|
||||
67,99.5,82.8,99.5,82.9,99.1,83.0
|
||||
68,99.6,83.8,99.6,83.9,99.5,84.0
|
||||
69,99.6,84.8,99.6,84.9,99.6,84.9
|
||||
70,99.7,85.8,99.7,86.0,99.6,85.8
|
||||
71,99.8,86.8,99.8,87.0,99.6,86.8
|
||||
72,99.8,87.8,99.8,88.0,99.6,87.7
|
||||
73,99.8,88.8,99.8,89.0,99.6,88.7
|
||||
74,99.8,89.8,99.8,90.0,99.6,89.6
|
||||
75,99.9,90.8,99.9,91.0,99.8,90.6
|
||||
76,99.9,91.8,100.0,92.0,99.8,91.5
|
||||
77,99.9,92.8,100.0,93.0,99.8,92.5
|
||||
78,100.0,93.8,100.0,94.1,99.8,93.4
|
||||
79,100.0,94.8,100.0,95.1,99.8,94.4
|
||||
80,100.0,95.8,100.0,96.1,100.0,95.3
|
||||
|
62
ISS20r/normtabellen/alter_30_39.csv
Normal file
62
ISS20r/normtabellen/alter_30_39.csv
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
rohwert,pr_gesamt,t_gesamt,pr_maennlich,t_maennlich,pr_weiblich,t_weiblich
|
||||
20,2.9,37.7,1.9,37.0,5.9,39.4
|
||||
21,6.2,38.6,4.5,38.0,11.5,40.4
|
||||
22,10.7,39.0,8.7,39.0,16.9,41.3
|
||||
23,16.9,40.6,14.8,40.0,23.5,42.2
|
||||
24,22.2,41.6,19.4,41.0,30.9,43.2
|
||||
25,27.5,42.6,24.6,42.1,36.8,44.1
|
||||
26,32.9,43.6,30.3,43.1,41.2,45.1
|
||||
27,37.7,44.6,35.2,44.1,45.5,46.0
|
||||
28,43.6,45.6,40.7,45.1,52.4,46.9
|
||||
29,48.7,46.6,46.2,46.1,56.8,47.9
|
||||
30,52.8,47.5,50.6,47.1,59.8,48.8
|
||||
31,57.2,48.5,54.4,48.1,64.5,49.8
|
||||
32,61.4,49.5,59.4,49.1,67.8,50.7
|
||||
33,64.3,50.5,62.9,50.1,69.1,51.6
|
||||
34,67.7,51.5,66.3,51.1,72.6,52.6
|
||||
35,69.9,52.5,68.9,52.2,73.7,53.5
|
||||
36,72.6,53.5,71.6,53.2,76.2,54.5
|
||||
37,75.4,54.5,74.5,54.2,78.8,55.4
|
||||
38,77.6,55.5,76.5,55.2,81.6,56.3
|
||||
39,79.7,56.4,78.7,56.2,83.1,57.3
|
||||
40,81.5,57.4,80.7,57.2,83.9,58.2
|
||||
41,83.3,58.4,82.4,58.2,85.9,59.2
|
||||
42,84.7,59.4,84.1,59.2,86.7,60.1
|
||||
43,86.1,60.4,85.7,60.2,87.7,61.1
|
||||
44,87.2,61.4,86.7,61.2,89.0,62.0
|
||||
45,88.8,62.4,88.3,62.3,90.5,62.9
|
||||
46,90.0,63.4,89.7,63.3,91.0,63.9
|
||||
47,91.0,64.4,90.9,64.3,91.6,64.8
|
||||
48,91.8,65.3,91.8,65.3,92.1,65.8
|
||||
49,92.6,66.3,92.7,66.3,92.6,66.7
|
||||
50,93.6,67.3,93.7,67.3,93.6,67.6
|
||||
51,94.7,68.3,94.9,68.3,94.1,68.6
|
||||
52,95.0,69.3,95.2,69.3,94.6,69.5
|
||||
53,95.6,70.3,95.7,70.3,95.4,70.5
|
||||
54,96.3,71.3,96.5,71.4,95.9,71.4
|
||||
55,96.9,72.3,96.9,72.4,96.7,72.3
|
||||
56,97.3,73.3,97.4,73.4,96.9,73.3
|
||||
57,97.5,74.2,97.6,74.4,97.2,74.2
|
||||
58,97.8,75.2,97.8,75.4,97.4,75.2
|
||||
59,98.1,76.2,98.2,76.4,97.7,76.1
|
||||
60,98.1,77.2,98.3,77.4,97.7,77.0
|
||||
61,98.3,78.2,98.4,78.4,98.0,78.0
|
||||
62,98.5,79.2,98.5,79.4,98.2,78.9
|
||||
63,98.8,80.2,98.9,80.4,98.5,79.9
|
||||
64,98.8,81.2,98.9,81.5,98.5,80.8
|
||||
65,98.9,82.2,99.1,82.5,98.5,81.7
|
||||
66,98.9,83.1,99.1,83.5,98.5,82.7
|
||||
67,99.0,84.1,99.1,84.5,98.7,83.6
|
||||
68,99.2,85.1,99.2,85.5,99.0,84.6
|
||||
69,99.2,86.1,99.3,86.5,99.0,85.5
|
||||
70,99.4,87.1,99.6,87.4,99.0,86.4
|
||||
71,99.4,88.1,99.6,88.5,99.0,87.4
|
||||
72,99.5,89.1,99.7,89.5,99.0,88.3
|
||||
73,99.6,90.1,99.7,90.6,99.0,89.3
|
||||
74,99.6,91.1,99.7,91.6,99.2,90.2
|
||||
75,99.6,92.0,99.7,92.6,99.2,91.1
|
||||
76,99.6,93.0,99.7,93.6,99.2,92.1
|
||||
77,99.7,94.0,99.8,94.6,99.2,93.0
|
||||
78,99.7,95.0,99.8,95.6,99.5,94.0
|
||||
79,99.8,96.0,99.9,96.6,99.5,94.9
|
||||
80,100.0,97.0,100.0,97.6,100.0,95.8
|
||||
|
62
ISS20r/normtabellen/alter_40_49.csv
Normal file
62
ISS20r/normtabellen/alter_40_49.csv
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
rohwert,pr_gesamt,t_gesamt,pr_maennlich,t_maennlich,pr_weiblich,t_weiblich
|
||||
20,2.8,38.1,3.0,37.4,2.5,40.9
|
||||
21,6.8,39.2,5.9,38.5,9.2,40.8
|
||||
22,13.8,40.2,12.5,39.6,17.6,41.8
|
||||
23,19.5,41.2,18.5,40.6,22.7,42.8
|
||||
24,26.8,42.3,25.1,41.7,31.9,43.8
|
||||
25,32.6,43.3,30.4,42.8,39.5,44.7
|
||||
26,38.5,44.4,36.0,43.9,46.2,45.7
|
||||
27,44.8,45.4,41.3,44.9,55.5,46.7
|
||||
28,49.5,46.4,45.9,46.0,59.7,47.6
|
||||
29,55.4,47.5,52.1,47.1,64.7,48.6
|
||||
30,58.5,48.5,55.8,48.2,66.4,49.6
|
||||
31,62.7,49.5,59.7,49.3,71.4,50.6
|
||||
32,64.3,50.6,61.4,50.3,73.1,51.5
|
||||
33,67.8,51.6,65.7,51.2,74.8,52.5
|
||||
34,70.7,52.6,68.6,52.5,77.3,53.5
|
||||
35,73.5,53.7,72.3,53.6,78.2,53.2
|
||||
36,77.0,54.7,76.2,54.7,80.7,55.4
|
||||
37,77.9,55.8,77.6,55.7,80.7,56.4
|
||||
38,80.3,56.8,80.2,56.8,82.4,57.4
|
||||
39,81.2,57.8,81.2,57.9,83.2,58.3
|
||||
40,83.1,58.9,83.8,59.0,83.2,59.3
|
||||
41,84.7,59.9,85.1,60.1,85.7,60.3
|
||||
42,86.4,60.9,86.5,61.1,88.2,61.3
|
||||
43,87.1,62.0,87.1,62.2,89.1,62.2
|
||||
44,88.5,63.0,88.4,63.3,90.8,63.2
|
||||
45,89.9,64.1,89.8,64.4,91.6,64.2
|
||||
46,91.1,65.1,91.4,65.5,91.6,65.1
|
||||
47,91.8,66.1,92.4,66.5,91.6,66.1
|
||||
48,92.5,67.2,93.4,67.6,91.6,67.1
|
||||
49,93.4,68.2,94.4,68.7,92.4,68.1
|
||||
50,94.1,69.2,95.0,69.8,93.3,69.0
|
||||
51,95.3,70.3,96.0,70.9,94.1,70.5
|
||||
52,96.7,71.3,96.7,71.9,96.6,71.0
|
||||
53,96.7,72.3,96.7,73.0,96.6,71.9
|
||||
54,97.7,73.4,97.7,74.1,97.5,72.9
|
||||
55,97.9,74.4,98.0,75.2,97.5,73.9
|
||||
56,98.4,75.5,98.7,76.2,97.5,74.9
|
||||
57,98.6,76.5,99.0,77.3,97.5,75.8
|
||||
58,98.6,77.5,99.0,78.4,97.5,76.8
|
||||
59,98.6,78.6,99.0,79.5,97.5,77.8
|
||||
60,98.8,79.6,99.0,80.6,98.3,78.7
|
||||
61,98.8,80.6,99.0,81.6,98.3,79.7
|
||||
62,98.8,81.7,99.0,82.7,98.3,80.7
|
||||
63,98.8,82.7,99.0,83.8,98.3,81.7
|
||||
64,99.1,83.7,99.3,84.9,98.3,82.6
|
||||
65,99.1,84.8,99.3,86.0,98.3,83.6
|
||||
66,99.3,85.8,99.7,87.0,98.3,84.6
|
||||
67,99.5,86.9,100.0,88.1,98.3,85.6
|
||||
68,99.5,87.9,100.0,89.2,98.3,86.5
|
||||
69,99.5,88.9,100.0,90.3,98.3,87.5
|
||||
70,99.8,90.0,100.0,91.4,99.2,88.5
|
||||
71,99.8,91.0,100.0,92.4,99.2,89.4
|
||||
72,99.8,92.0,100.0,93.5,99.2,90.4
|
||||
73,99.8,93.1,100.0,94.6,99.2,91.4
|
||||
74,99.8,94.1,100.0,95.7,99.2,92.4
|
||||
75,100.0,95.1,100.0,96.8,100.0,93.3
|
||||
76,100.0,96.2,100.0,97.8,100.0,94.3
|
||||
77,100.0,97.2,100.0,98.9,100.0,95.3
|
||||
78,100.0,98.3,100.0,100.0,100.0,96.2
|
||||
79,100.0,99.3,100.0,101.1,100.0,97.2
|
||||
80,100.0,100.3,100.0,102.1,100.0,98.2
|
||||
|
62
ISS20r/normtabellen/alter_ab50.csv
Normal file
62
ISS20r/normtabellen/alter_ab50.csv
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
rohwert,pr_gesamt,t_gesamt,pr_maennlich,t_maennlich,pr_weiblich,t_weiblich
|
||||
20,3.4,37.9,3.7,38.6,2.6,35.1
|
||||
21,8.0,39.0,8.2,39.7,7.7,36.3
|
||||
22,16.1,40.2,17.2,40.9,12.8,37.5
|
||||
23,21.8,41.3,22.4,42.1,20.5,38.7
|
||||
24,29.3,42.5,31.3,43.2,23.1,39.9
|
||||
25,36.8,43.6,40.3,44.4,25.6,41.1
|
||||
26,41.4,44.8,44.8,45.5,30.8,42.4
|
||||
27,46.6,46.0,50.0,46.7,35.9,43.6
|
||||
28,52.3,47.1,56.7,47.9,38.5,44.8
|
||||
29,55.7,48.3,61.2,49.0,38.5,46.0
|
||||
30,62.1,49.4,66.4,50.2,48.7,47.2
|
||||
31,66.1,50.6,70.1,51.3,53.8,48.4
|
||||
32,69.5,51.7,73.9,52.5,56.4,49.6
|
||||
33,72.4,52.9,75.4,53.6,64.1,50.8
|
||||
34,73.6,54.1,76.9,54.8,64.1,52.0
|
||||
35,75.9,55.2,79.9,56.0,64.1,53.2
|
||||
36,77.0,56.4,81.3,57.1,64.1,54.4
|
||||
37,78.7,57.5,83.6,58.3,64.1,55.6
|
||||
38,79.9,58.7,84.3,59.4,66.7,56.8
|
||||
39,81.6,59.8,86.6,60.6,66.7,58.1
|
||||
40,85.1,61.0,88.8,61.8,74.4,59.3
|
||||
41,86.2,62.2,88.8,62.9,79.5,60.5
|
||||
42,87.9,63.3,90.3,64.1,82.1,61.7
|
||||
43,90.2,64.5,90.3,65.2,92.3,62.9
|
||||
44,92.0,65.6,92.5,66.4,92.3,64.1
|
||||
45,94.8,66.8,94.0,67.5,97.4,65.3
|
||||
46,96.0,67.9,94.8,68.7,100.0,66.5
|
||||
47,96.0,69.1,94.8,69.9,100.0,67.7
|
||||
48,96.0,70.3,94.8,71.0,100.0,68.9
|
||||
49,96.6,71.4,95.5,72.2,100.0,70.1
|
||||
50,97.1,72.6,96.3,73.3,100.0,71.3
|
||||
51,97.1,73.7,96.3,74.5,100.0,72.5
|
||||
52,97.7,74.9,97.0,75.7,100.0,73.8
|
||||
53,98.3,76.0,97.8,76.8,100.0,75.0
|
||||
54,98.3,77.2,97.8,78.0,100.0,76.2
|
||||
55,98.3,78.4,97.8,79.1,100.0,77.4
|
||||
56,98.3,79.5,97.8,80.3,100.0,78.6
|
||||
57,98.9,80.7,98.5,81.4,100.0,79.8
|
||||
58,98.9,81.8,98.5,82.6,100.0,81.0
|
||||
59,99.4,83.0,99.3,83.8,100.0,82.2
|
||||
60,99.4,84.1,99.3,84.9,100.0,83.4
|
||||
61,100.0,85.3,100.0,86.1,100.0,84.6
|
||||
62,100.0,86.5,100.0,87.2,100.0,85.8
|
||||
63,100.0,87.6,100.0,88.4,100.0,87.0
|
||||
64,100.0,88.8,100.0,89.6,100.0,88.2
|
||||
65,100.0,89.9,100.0,90.7,100.0,89.5
|
||||
66,100.0,91.1,100.0,91.9,100.0,90.7
|
||||
67,100.0,92.2,100.0,93.0,100.0,91.9
|
||||
68,100.0,93.4,100.0,94.2,100.0,93.1
|
||||
69,100.0,94.6,100.0,95.3,100.0,94.3
|
||||
70,100.0,95.7,100.0,96.5,100.0,95.5
|
||||
71,100.0,96.9,100.0,97.7,100.0,96.7
|
||||
72,100.0,98.0,100.0,98.8,100.0,97.9
|
||||
73,100.0,99.2,100.0,100.0,100.0,99.1
|
||||
74,100.0,100.3,100.0,101.1,100.0,100.3
|
||||
75,100.0,101.5,100.0,102.3,100.0,101.5
|
||||
76,100.0,102.7,100.0,103.4,100.0,102.7
|
||||
77,100.0,103.8,100.0,104.6,100.0,104.0
|
||||
78,100.0,105.0,100.0,105.8,100.0,105.2
|
||||
79,100.0,106.1,100.0,106.9,100.0,106.4
|
||||
80,100.0,107.3,100.0,108.1,100.0,107.6
|
||||
|
62
ISS20r/normtabellen/alter_bis19.csv
Normal file
62
ISS20r/normtabellen/alter_bis19.csv
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
rohwert,pr_gesamt,t_gesamt,pr_maennlich,t_maennlich,pr_weiblich,t_weiblich
|
||||
20,1.3,35.1,1.5,35.0,0.5,36.2
|
||||
21,3.2,35.9,3.2,35.8,3.2,37.0
|
||||
22,5.5,36.8,5.4,36.6,6.5,37.8
|
||||
23,8.3,37.6,7.5,37.4,13.4,38.6
|
||||
24,10.6,38.4,9.7,38.2,16.2,39.4
|
||||
25,13.4,39.2,12.3,39.1,20.4,40.1
|
||||
26,16.6,40.0,15.4,39.9,24.1,40.9
|
||||
27,20.4,40.8,19.1,40.7,28.2,41.7
|
||||
28,23.5,41.7,22.5,41.5,29.6,42.5
|
||||
29,27.4,42.5,26.2,42.3,33.8,43.3
|
||||
30,31.2,43.3,30.4,43.2,36.1,44.1
|
||||
31,34.5,44.1,33.8,44.0,38.9,44.9
|
||||
32,38.3,44.9,37.8,44.8,41.7,45.7
|
||||
33,41.2,45.7,41.0,45.6,43.1,46.5
|
||||
34,44.7,46.6,44.5,46.5,46.8,47.3
|
||||
35,47.7,47.4,47.8,47.3,48.1,48.1
|
||||
36,51.9,48.2,51.8,48.1,53.2,48.9
|
||||
37,55.5,49.0,55.6,48.9,55.6,49.7
|
||||
38,58.8,49.8,58.7,49.7,60.2,50.5
|
||||
39,61.8,50.6,61.8,50.6,62.0,51.3
|
||||
40,64.3,51.5,64.3,51.4,64.4,52.1
|
||||
41,66.7,52.3,66.7,52.2,67.1,52.9
|
||||
42,69.3,53.1,69.0,53.0,71.8,53.7
|
||||
43,71.8,53.9,71.6,53.8,73.6,54.5
|
||||
44,74.0,54.7,73.8,54.7,75.5,55.3
|
||||
45,75.6,55.5,75.6,55.5,76.4,56.1
|
||||
46,77.1,56.4,77.0,56.3,78.2,56.9
|
||||
47,79.0,57.2,79.1,57.1,79.2,57.7
|
||||
48,80.8,58.0,80.7,57.9,81.0,58.5
|
||||
49,82.7,58.8,82.7,58.8,82.9,59.3
|
||||
50,84.2,59.6,84.2,59.6,84.3,60.1
|
||||
51,84.9,60.5,85.1,60.4,84.3,60.9
|
||||
52,86.3,61.3,86.3,61.2,87.0,61.7
|
||||
53,87.6,62.1,87.6,62.0,88.4,62.5
|
||||
54,88.8,62.9,88.7,62.9,89.8,63.3
|
||||
55,89.8,63.7,89.5,63.7,91.7,64.1
|
||||
56,90.7,64.5,90.5,64.5,92.1,64.9
|
||||
57,91.8,65.4,91.7,65.3,92.6,65.7
|
||||
58,92.3,66.2,92.3,66.2,93.1,66.5
|
||||
59,93.1,67.0,92.9,67.0,94.4,67.3
|
||||
60,93.5,67.8,93.5,67.8,94.4,68.1
|
||||
61,94.2,68.6,94.1,68.6,94.9,68.9
|
||||
62,94.6,69.4,94.3,69.4,95.8,69.7
|
||||
63,95.6,70.3,95.4,70.3,96.8,70.5
|
||||
64,96.2,71.1,96.0,71.1,96.8,71.3
|
||||
65,96.4,71.9,96.3,71.9,96.8,72.1
|
||||
66,96.8,72.7,96.8,72.7,96.8,72.9
|
||||
67,97.3,73.5,97.3,73.5,96.8,73.7
|
||||
68,97.7,74.3,97.6,74.4,97.7,74.5
|
||||
69,98.1,75.2,98.1,75.2,98.1,75.3
|
||||
70,98.3,76.0,98.3,76.0,98.1,76.1
|
||||
71,98.8,76.8,98.9,76.8,98.6,76.9
|
||||
72,99.0,77.6,99.1,77.6,98.6,77.7
|
||||
73,99.0,78.4,99.1,78.5,98.6,78.5
|
||||
74,99.2,79.2,99.3,79.3,99.1,79.3
|
||||
75,99.3,80.1,99.4,80.1,99.1,80.1
|
||||
76,99.5,80.9,99.5,80.9,99.5,80.9
|
||||
77,99.7,81.7,99.7,81.8,100.0,81.7
|
||||
78,99.9,82.5,99.9,82.6,100.0,82.5
|
||||
79,99.9,83.3,99.9,83.4,100.0,83.3
|
||||
80,100.0,84.1,100.0,84.2,100.0,84.0
|
||||
|
62
ISS20r/normtabellen/gesamt_ohne_altersdifferenzierung.csv
Normal file
62
ISS20r/normtabellen/gesamt_ohne_altersdifferenzierung.csv
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
rohwert,pr_total,t_total,pr_maennlich,t_maennlich,pr_weiblich,t_weiblich
|
||||
20,2.0,36.7,1.5,36.1,4.2,38.6
|
||||
21,4.7,37.6,3.8,37.1,8.7,39.5
|
||||
22,8.4,38.5,7.1,38.0,13.7,40.4
|
||||
23,12.9,39.5,11.1,39.0,20.3,41.3
|
||||
24,17.1,40.4,14.8,39.9,26.8,42.2
|
||||
25,21.8,41.3,19.1,40.8,32.6,43.1
|
||||
26,26.6,42.3,24.0,41.8,37.2,44.1
|
||||
27,31.0,43.2,28.4,42.7,42.0,45.0
|
||||
28,35.8,44.1,33.1,43.7,47.0,45.9
|
||||
29,40.4,45.1,37.8,44.6,51.1,46.8
|
||||
30,44.8,46.0,42.5,45.5,54.4,47.7
|
||||
31,49.1,46.9,46.8,46.5,58.5,48.6
|
||||
32,52.9,47.9,50.7,47.4,61.9,49.5
|
||||
33,56.1,48.8,54.3,48.4,63.5,50.4
|
||||
34,59.6,49.7,57.9,49.3,66.2,51.3
|
||||
35,62.6,50.6,61.2,50.2,68.1,52.2
|
||||
36,65.8,51.6,64.5,51.2,71.1,53.1
|
||||
37,68.6,52.5,67.5,52.1,72.9,54.0
|
||||
38,71.4,53.4,70.3,53.1,75.6,54.9
|
||||
39,73.9,54.4,73.0,54.0,77.5,55.8
|
||||
40,76.1,55.3,75.4,55.0,79.0,56.7
|
||||
41,78.2,56.2,77.5,55.9,81.2,57.6
|
||||
42,80.2,57.2,79.4,56.8,83.2,58.5
|
||||
43,82.3,58.1,81.6,57.8,84.9,59.4
|
||||
44,84.0,59.0,83.4,58.7,86.4,60.3
|
||||
45,85.2,60.0,84.6,59.7,87.7,61.2
|
||||
46,86.9,60.9,86.3,60.6,89.1,62.1
|
||||
47,88.0,61.8,87.6,61.5,89.9,63.0
|
||||
48,88.9,62.7,88.5,62.5,90.5,63.9
|
||||
49,90.1,63.7,89.8,63.4,91.3,64.8
|
||||
50,91.2,64.6,90.9,64.4,92.4,65.8
|
||||
51,92.0,65.5,91.8,65.3,92.7,66.7
|
||||
52,92.8,66.5,92.5,66.3,93.6,67.6
|
||||
53,93.6,67.4,93.4,67.2,94.3,68.5
|
||||
54,94.3,68.3,94.1,68.1,95.0,69.4
|
||||
55,94.9,69.3,94.7,69.1,95.5,70.3
|
||||
56,95.4,70.2,95.3,70.0,95.8,71.2
|
||||
57,96.0,71.1,96.0,71.0,96.2,72.1
|
||||
58,96.4,72.1,96.4,71.9,96.4,73.0
|
||||
59,96.9,73.0,96.9,72.8,96.8,73.9
|
||||
60,97.2,73.9,97.2,73.8,97.2,74.8
|
||||
61,97.5,74.8,97.5,74.7,97.4,75.7
|
||||
62,97.7,75.8,97.7,75.7,97.8,76.6
|
||||
63,98.2,76.7,98.2,76.6,98.2,77.5
|
||||
64,98.4,77.6,98.4,77.5,98.3,78.4
|
||||
65,98.5,78.6,98.6,78.5,98.3,79.3
|
||||
66,98.7,79.5,98.8,79.4,98.3,80.2
|
||||
67,98.9,80.4,99.0,80.4,98.6,81.1
|
||||
68,99.1,81.4,99.1,81.3,98.9,82.0
|
||||
69,99.2,82.3,99.2,82.3,99.1,82.9
|
||||
70,99.3,83.2,99.4,83.2,99.2,83.8
|
||||
71,99.5,84.2,99.6,84.1,99.2,84.7
|
||||
72,99.6,85.1,99.6,85.1,99.2,85.6
|
||||
73,99.6,86.0,99.6,86.0,99.2,86.5
|
||||
74,99.6,87.0,99.7,87.0,99.4,87.5
|
||||
75,99.7,87.9,99.8,87.9,99.5,88.4
|
||||
76,99.8,88.8,99.8,88.8,99.6,89.3
|
||||
77,99.8,89.7,99.9,89.8,99.7,90.2
|
||||
78,99.9,90.7,99.9,90.7,99.8,91.1
|
||||
79,99.9,91.6,100.0,91.7,99.8,92.0
|
||||
80,100.0,92.5,100.0,92.6,100.0,92.9
|
||||
|
2879
ISS20r/renv.lock
Normal file
2879
ISS20r/renv.lock
Normal file
File diff suppressed because it is too large
Load diff
14
ISS20r/setup_renv.R
Normal file
14
ISS20r/setup_renv.R
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Einmalig ausfuehren, bevor die App zum ersten Mal gestartet wird.
|
||||
# Initialisiert renv und installiert alle benoetigten Pakete.
|
||||
#
|
||||
# DBI und RSQLite werden vom gesourcten Pseudonym-Skript benoetigt,
|
||||
# nicht direkt von der App selbst.
|
||||
|
||||
renv::init()
|
||||
|
||||
pkgs = c("shiny", "dplyr", "ggplot2", "haven", "officer", "DBI", "RSQLite")
|
||||
install.packages(pkgs)
|
||||
|
||||
renv::snapshot()
|
||||
|
||||
message("Setup abgeschlossen. App starten mit: shiny::runApp()")
|
||||
Loading…
Add table
Add a link
Reference in a new issue