Description Usage Arguments Value Examples
Formatiere Zahlen zu Character f?r den Output format
Format2.matrix kann <c3><bc>ber digits verschiedene nachkommastellen runden
Format2.data.frame
countDigits Interne Function wird in Meanci2() verwendet
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | Format2(x, ...)
## S3 method for class 'matrix'
Format2(x, digits, ...)
## S3 method for class 'data.frame'
Format2(x, digits = NULL, lead.zero = TRUE,
type = "digits", scientific = FALSE, ...)
## S3 method for class 'list'
Format2(x, digits = NULL, lead.zero = TRUE,
type = "digits", scientific = FALSE, ...)
## Default S3 method:
Format2(x, digits = NULL, lead.zero = TRUE,
OutDec = getOption("OutDec"), type = "digits", scientific = FALSE,
nsmall = ifelse(is.null(digits), 0L, digits), ...)
ffpvalue(x, digits = options()$stp25$apa.style$p$digits,
lead.zero = options()$stp25$apa.style$p$lead.zero,
with.stars = options()$stp25$apa.style$p$with.stars, pval = x,
lim_sig = ifelse(options()$prompt[1] == "HTML> ", "<", "<"), ...)
ffsigstars(x, stars.value = options()$stp25$apa.style$p$stars.value,
stars.symbols = options()$stp25$apa.style$p$stars.symbols)
ffprozent(prz, frq = NULL, ...)
## Default S3 method:
ffprozent(prz, frq = NULL,
digits = options()$stp25$apa.style$prozent$digits,
lead.zero = options()$stp25$apa.style$prozent$lead.zero,
style = options()$stp25$apa.style$prozent$style,
null_percent_sign = options()$stp25$apa.style$prozent$null_percent_sign,
...)
## S3 method for class 'data.frame'
ffprozent(prz, frq = NULL, ...)
## S3 method for class 'matrix'
ffprozent(prz, frq = NULL, ...)
ffCI(CIs, digits = 2,
lead.zero = options()$stp25$apa.style$mittelwert$lead.zero,
sep = options()$stp25$apa.style$sep_element,
sep_1 = options()$stp25$apa.style$brackets[1],
sep_2 = options()$stp25$apa.style$brackets[2], ...)
ffreta(x, digits = options()$stp25$apa.style$r$digits,
lead.zero = options()$stp25$apa.style$r$lead.zero)
fftest(x, digits = options()$stp25$apa.style$Fstat$digits,
lead.zero = options()$stp25$apa.style$Fstat$lead.zero)
countDigits(x)
|
x |
vektor liste oder matrix |
... |
alles an format |
digits |
bei data.frame auch mehere Werte |
lead.zero |
= TRUE |
type |
= "digits"oder"signif |
scientific |
= FALSE |
OutDec |
= getOption("OutDec") |
nsmall |
nicht aendern werden digite |
pattern_pval |
nicht aendern P-Werte Namen |
pattern_est |
nicht aendern Parameter Namen |
pattern_df |
nicht aendern DF Namen |
apa.style |
nicht aendern verwendeter Style als liste |
col_names |
fuer fix_colnames col_names=NULL |
translate |
fuer fix_colnames(x, translate= TRUE) |
Objekt als Character
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ##library(stp5)
# Projekt(OutDec = ",")
# options()
x<- rnorm(10)
df <- data.frame(Item=c("a", "b"),
x=x[1:2],
x2=c(1.2,2.3),
beta= c(.22,.13),
x3=c(.42,.03),
p.value=c(0.02456,0.0398))
mx<- as.matrix(df[,-1])
#Projekt("html", OutDec = ".")
#Output(Format2(df, digits=c(1,2,2,2,2,3)))
#Format2(mx, digits=c(4,2,2,2,2,3))
Format2(x, digits=2, FALSE)
Format2(x, digits=3)
x<- list(a=1:5, b=rnorm(10))
length(x)
Format2(x, 2, FALSE)
#End()
x<-matrix(rnorm(10), ncol=2)
Format2.matrix(x[,1],c(1:5))
# str(Format2(data.frame(a1=1:10/100,a2=1:10, a3=1:10)))
countDigits(1.2345)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.