Description Usage Arguments Value Examples
View source: R/formula-helper.R
Formulas
clean_dots_formula: Formel bereinigen
formula_split stolen from mosaic ggformula
make_formula: Formel erstellen in berechne_all(...)
verwendet.
Hier wird cbind(a,b,c)~g
ausgegebeb.
check_data: prueft ob variablen vorhanden sind bzw ob Faelle NA sind.
makeNamesNum: aus Nummern die Namen extrahieren
1 2 3 4 5 6 7 8 9 10 11 | formula_helper(...)
clean_dots_formula(x, data = NULL, names_data = names(data))
formula_split(x)
make_formula(measurevar, groupvars = NULL)
check_data(data, vars = NULL)
makeNamesNum(measure, data, meAsNum = grepl("^[[:digit:]]", measure))
|
... |
weitere einstellungen |
x |
Formula |
data, names_data |
data.frame |
measurevar, groupvars |
mamen als strings |
vars |
in check_data |
measure |
Variablen |
meAsNum |
logical welche sind Zahlen |
data |
Daten als data.frame |
liste
clean_dots_formula: formula - Objekt
formula_split: liste formula, condition, facet_type
check_data: Logical und wen FALSE ueber cat die Objekt die falsch sind
string( )
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data <- data.frame(x = NA, y = NA, z = NA)
stp25formula:::clean_dots_formula(x ~ y, data)
stp25formula:::clean_dots_formula(. ~ x + y, data)
stp25formula:::clean_dots_formula(x + y ~ ., data)
stp25formula:::clean_dots_formula(~., data)
stp25formula:::formula_split(a+b~x|y)
make_formula("a", "b")
make_formula("a", c("b","c"))
make_formula("a", ~b+c)
make_formula(c("a", "d"), c("b","c"))
dat<- fata.frame(sex=1:2, m1=1:2, m3=1:2)
check_data(dat, c("m1", "m2") )
check_data(dat, c("m1", "sex") )
# measure <- c("geschl", "1" , "3:5", 1)
# stp25formula:::makeNamesNum(measure, data=dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.