Specify the number of decimals to print.
See also
Other formatting:
apa()
,
pValue()
,
suppressLeadingZero()
Examples
# Prepare Data
v1 <- rnorm(1000)
# Specify Decimals
specify_decimal(v1, 2)
#> [1] "0.60" "0.00" "0.10" "1.73" "0.63" "0.14" "-0.11" "0.17" "0.07"
#> [10] "-0.83" "0.73" "1.30" "-1.18" "0.30" "1.15" "-1.58" "-1.07" "0.15"
#> [19] "0.56" "-0.25" "0.61" "0.01" "1.56" "1.02" "0.94" "0.35" "-0.67"
#> [28] "-0.38" "-1.66" "2.56" "-1.03" "1.67" "1.91" "0.64" "0.53" "-0.65"
#> [37] "-1.19" "-0.78" "-0.87" "-0.91" "1.20" "-0.36" "-0.63" "-0.24" "1.12"
#> [46] "-0.35" "1.11" "1.23" "-0.07" "0.57" "1.05" "1.13" "-0.10" "0.20"
#> [55] "-0.51" "-0.97" "-0.44" "1.30" "-0.01" "0.81" "0.49" "-0.71" "0.94"
#> [64] "-0.34" "0.92" "-2.51" "0.10" "0.90" "1.87" "-0.86" "-0.40" "2.24"
#> [73] "0.76" "0.78" "-1.13" "1.83" "-0.34" "0.86" "0.02" "-0.40" "-0.93"
#> [82] "-1.49" "-0.06" "0.67" "1.14" "0.20" "-0.20" "-0.85" "-0.56" "-0.94"
#> [91] "-0.83" "1.36" "-0.64" "0.38" "0.76" "0.50" "-0.87" "0.01" "1.56"
#> [100] "0.83" "-0.89" "-1.69" "2.75" "-0.30" "-1.54" "0.64" "0.09" "1.29"
#> [109] "0.07" "-0.25" "-0.05" "0.92" "-0.60" "1.21" "-0.97" "-0.11" "-2.03"
#> [118] "0.25" "0.89" "0.91" "2.41" "-1.09" "0.36" "-0.54" "2.12" "0.28"
#> [127] "0.02" "0.89" "-0.90" "-0.29" "-0.66" "0.67" "-0.89" "0.35" "0.06"
#> [136] "-0.48" "0.24" "0.12" "-0.58" "0.33" "0.69" "-0.54" "0.00" "0.73"
#> [145] "1.36" "1.08" "1.06" "-0.51" "-0.63" "1.46" "0.37" "-0.78" "-0.19"
#> [154] "-0.28" "0.76" "-0.05" "-0.80" "-0.30" "0.25" "0.29" "-0.96" "-0.29"
#> [163] "1.61" "1.03" "0.25" "-1.27" "-0.43" "0.74" "1.13" "2.19" "-1.93"
#> [172] "0.65" "-0.51" "-0.51" "-0.85" "-0.27" "-1.78" "0.07" "-0.48" "-1.47"
#> [181] "-0.15" "0.77" "-2.03" "0.12" "0.05" "-2.53" "-1.37" "-2.33" "0.92"
#> [190] "0.02" "-0.53" "-0.16" "-1.73" "-0.20" "-0.82" "-0.78" "-0.87" "0.28"
#> [199] "-0.04" "1.62" "2.00" "-0.66" "-1.00" "-1.33" "1.05" "-0.36" "-0.09"
#> [208] "0.15" "1.47" "1.76" "-0.57" "-0.81" "-0.43" "-1.04" "0.15" "2.55"
#> [217] "0.60" "0.52" "-0.83" "-1.03" "-0.99" "0.54" "0.55" "1.04" "0.95"
#> [226] "-1.50" "1.88" "1.31" "0.27" "-0.03" "0.79" "0.24" "0.93" "-1.63"
#> [235] "0.64" "-0.83" "0.32" "0.06" "1.81" "0.83" "-0.47" "-0.27" "1.28"
#> [244] "-0.50" "-1.53" "-1.09" "1.17" "-0.93" "0.75" "-0.17" "2.43" "1.08"
#> [253] "-0.67" "-0.68" "-0.62" "-1.49" "1.61" "0.17" "0.72" "0.63" "0.24"
#> [262] "0.91" "-1.00" "-0.23" "1.06" "-0.58" "-0.98" "-0.24" "1.18" "1.39"
#> [271] "-1.18" "-0.12" "-0.30" "0.16" "-1.38" "-0.79" "0.81" "-0.18" "0.23"
#> [280] "0.57" "-0.48" "1.19" "0.69" "-0.94" "1.05" "0.34" "-0.19" "1.08"
#> [289] "0.33" "0.07" "-0.16" "-0.02" "-3.43" "-0.55" "0.28" "0.17" "1.11"
#> [298] "-0.78" "1.85" "1.67" "-0.07" "-1.08" "0.14" "0.12" "-0.99" "-0.69"
#> [307] "1.28" "0.88" "1.03" "0.61" "-0.99" "-0.50" "-0.55" "-0.06" "-2.83"
#> [316] "0.52" "0.41" "0.10" "-0.56" "1.93" "0.05" "-0.16" "0.46" "-2.04"
#> [325] "-1.44" "-0.67" "-1.16" "0.38" "2.09" "-1.06" "1.24" "-1.72" "-0.59"
#> [334] "0.75" "-0.87" "-0.13" "0.54" "0.49" "2.38" "0.65" "-1.50" "0.62"
#> [343] "1.62" "0.17" "-1.63" "-0.69" "-1.14" "1.69" "1.66" "1.58" "-0.77"
#> [352] "1.04" "-0.39" "0.11" "0.87" "-0.48" "1.07" "0.04" "-0.43" "0.67"
#> [361] "1.41" "0.63" "0.35" "0.98" "-1.80" "0.15" "0.10" "-0.79" "-1.25"
#> [370] "-0.36" "-1.48" "-0.53" "0.53" "0.31" "0.21" "1.09" "0.24" "-0.94"
#> [379] "0.06" "1.32" "-1.34" "-0.12" "0.68" "0.14" "-0.02" "-1.92" "0.81"
#> [388] "-0.84" "-1.24" "0.39" "0.92" "1.90" "0.48" "0.59" "0.83" "-0.83"
#> [397] "0.69" "0.65" "-1.34" "-1.27" "0.02" "-2.08" "1.21" "-0.82" "0.10"
#> [406] "2.01" "-1.44" "-0.42" "-0.97" "-1.19" "0.21" "-0.27" "-0.02" "-0.63"
#> [415] "-0.32" "0.00" "1.11" "-1.54" "0.66" "-0.47" "0.32" "-0.10" "-0.75"
#> [424] "-0.21" "0.32" "0.12" "-0.89" "-1.30" "0.16" "0.60" "-0.71" "0.45"
#> [433] "0.46" "0.41" "2.54" "-0.74" "1.42" "-0.76" "-0.28" "-0.28" "-0.95"
#> [442] "-0.31" "1.62" "0.11" "0.60" "0.32" "-0.11" "-0.18" "-0.44" "-0.65"
#> [451] "-1.96" "0.44" "-0.33" "-0.46" "-0.14" "-0.18" "1.86" "-1.31" "-0.34"
#> [460] "0.52" "1.17" "-0.95" "-1.38" "-0.43" "1.48" "0.43" "0.72" "-0.95"
#> [469] "1.10" "0.76" "0.38" "-0.93" "0.08" "0.80" "-0.25" "1.58" "-0.84"
#> [478] "0.39" "0.75" "1.03" "-0.61" "0.70" "-1.05" "-0.24" "-1.65" "-1.29"
#> [487] "-0.16" "0.21" "-0.94" "0.31" "1.38" "1.80" "0.97" "0.08" "-2.08"
#> [496] "-0.94" "0.83" "0.38" "-1.78" "0.30" "-0.78" "0.52" "2.17" "-0.62"
#> [505] "-0.42" "-0.91" "-0.98" "0.69" "0.83" "-0.62" "-2.12" "-0.54" "1.57"
#> [514] "-1.27" "0.10" "-2.13" "-0.18" "-0.94" "-0.26" "-0.79" "0.81" "-0.04"
#> [523] "0.55" "-0.84" "0.36" "-0.27" "0.31" "1.18" "-1.43" "-0.39" "0.09"
#> [532] "0.62" "1.48" "-0.63" "-0.31" "-0.88" "-1.60" "0.47" "0.15" "-1.00"
#> [541] "-0.23" "-0.67" "-0.86" "0.84" "0.54" "0.50" "1.62" "1.00" "-0.73"
#> [550] "-0.26" "-0.71" "0.60" "-2.54" "-0.17" "0.92" "0.80" "-0.36" "0.22"
#> [559] "0.66" "-1.46" "-0.98" "-1.55" "0.93" "-0.72" "0.12" "-0.52" "-0.68"
#> [568] "1.22" "-0.65" "0.96" "-0.56" "1.04" "-0.99" "1.32" "-0.07" "1.61"
#> [577] "-1.59" "0.42" "-1.13" "-0.44" "-0.30" "-0.67" "-1.17" "-0.24" "1.92"
#> [586] "0.98" "1.26" "0.45" "1.52" "0.88" "-0.96" "0.32" "-0.42" "1.40"
#> [595] "0.70" "0.03" "1.35" "-0.71" "-0.08" "0.60" "1.41" "1.21" "-2.16"
#> [604] "0.92" "-0.72" "0.44" "0.12" "-0.73" "0.04" "0.32" "-0.34" "-0.19"
#> [613] "-1.92" "-0.10" "-1.26" "-0.45" "-0.17" "-0.14" "0.54" "-2.11" "0.54"
#> [622] "1.80" "-0.94" "-0.66" "0.40" "0.55" "-0.44" "1.17" "0.87" "0.12"
#> [631] "0.04" "-0.19" "-0.04" "-0.84" "0.56" "-0.53" "0.62" "-0.97" "-0.76"
#> [640] "0.59" "0.36" "-0.70" "0.51" "-0.62" "0.20" "-0.16" "-1.05" "0.38"
#> [649] "1.16" "-0.39" "-0.08" "-0.76" "1.67" "0.93" "-0.60" "-1.61" "0.14"
#> [658] "-1.33" "1.07" "0.25" "-0.50" "-0.52" "0.90" "0.03" "1.12" "1.96"
#> [667] "-0.93" "0.25" "1.00" "0.63" "2.52" "0.91" "0.37" "-1.56" "-0.56"
#> [676] "0.77" "0.25" "0.02" "0.00" "0.46" "0.33" "0.47" "0.47" "-0.07"
#> [685] "0.56" "0.96" "1.11" "0.27" "-0.47" "-0.11" "0.78" "1.20" "0.92"
#> [694] "0.24" "-0.70" "0.63" "0.45" "-0.34" "-0.15" "0.00" "-1.00" "0.69"
#> [703] "-0.10" "-1.06" "-0.50" "-0.34" "2.02" "-0.64" "3.08" "0.58" "0.59"
#> [712] "-1.52" "0.84" "0.28" "1.10" "1.47" "0.99" "-0.77" "-2.98" "-0.94"
#> [721] "-0.50" "1.20" "0.76" "2.22" "-1.22" "-1.24" "-0.49" "-0.28" "2.86"
#> [730] "-0.77" "0.66" "-1.74" "-0.86" "-1.09" "0.19" "-1.00" "-2.56" "0.04"
#> [739] "-0.43" "1.07" "0.75" "1.08" "0.36" "2.17" "1.64" "1.08" "-0.48"
#> [748] "0.89" "3.07" "2.40" "-1.31" "0.30" "0.67" "2.47" "-0.28" "1.12"
#> [757] "0.19" "-0.17" "-1.76" "1.76" "-0.14" "-0.96" "-0.42" "2.07" "2.18"
#> [766] "-0.71" "0.63" "0.98" "-0.32" "1.29" "-0.54" "-0.96" "1.73" "0.50"
#> [775] "0.48" "0.99" "1.52" "0.81" "1.42" "-0.35" "-0.26" "0.69" "0.88"
#> [784] "0.95" "-0.43" "-0.91" "-1.79" "-1.11" "-0.56" "-0.14" "0.83" "-0.06"
#> [793] "0.70" "1.51" "-1.05" "-0.07" "0.90" "0.14" "-0.23" "0.24" "0.69"
#> [802] "-1.08" "0.01" "2.06" "1.20" "-2.12" "0.96" "0.54" "0.48" "-1.11"
#> [811] "-0.14" "1.31" "0.55" "2.37" "0.15" "1.51" "-1.06" "-0.01" "0.45"
#> [820] "0.62" "0.13" "0.35" "-1.12" "-0.18" "0.56" "-0.48" "1.51" "1.64"
#> [829] "-0.96" "-0.77" "-1.59" "-0.49" "0.15" "-1.43" "-1.44" "-0.61" "-0.64"
#> [838] "0.13" "-0.35" "-0.39" "0.81" "0.79" "-1.39" "0.06" "1.97" "0.65"
#> [847] "-1.52" "0.93" "1.38" "-1.74" "-0.39" "0.17" "0.37" "-0.19" "1.40"
#> [856] "1.12" "0.18" "-0.19" "0.34" "0.78" "-2.22" "0.44" "0.41" "0.19"
#> [865] "0.09" "1.92" "-0.79" "-2.18" "0.73" "0.06" "-0.92" "-0.13" "0.24"
#> [874] "-0.49" "-0.67" "0.55" "1.51" "-0.94" "0.93" "-0.40" "-0.56" "-0.73"
#> [883] "1.06" "-0.06" "1.76" "-1.78" "-0.26" "1.19" "-0.15" "-0.62" "2.14"
#> [892] "-1.04" "-0.71" "1.43" "1.61" "1.55" "-1.25" "-0.32" "0.17" "-0.47"
#> [901] "-0.49" "-0.50" "-0.17" "0.25" "0.96" "1.31" "-1.55" "-0.36" "0.41"
#> [910] "0.70" "0.12" "1.41" "-0.68" "-0.37" "1.40" "0.22" "-0.03" "-1.86"
#> [919] "0.56" "0.70" "0.60" "-1.60" "0.44" "-0.16" "-0.94" "-0.83" "0.09"
#> [928] "0.19" "-1.68" "-1.00" "0.89" "-0.41" "0.36" "-0.86" "-0.19" "0.44"
#> [937] "0.31" "1.06" "-0.09" "0.39" "-0.86" "-2.13" "0.47" "-0.16" "-0.75"
#> [946] "-0.51" "-1.13" "-1.62" "0.38" "-0.41" "-1.08" "-1.34" "0.79" "-0.60"
#> [955] "-0.42" "0.19" "-1.06" "-0.21" "0.02" "0.18" "-0.97" "-0.43" "1.20"
#> [964] "0.55" "-2.11" "0.20" "0.48" "1.60" "-0.80" "0.47" "-0.96" "0.52"
#> [973] "0.08" "-1.25" "-0.21" "-0.72" "1.76" "0.31" "-1.47" "0.81" "1.21"
#> [982] "-0.75" "0.32" "0.27" "0.96" "-0.53" "0.13" "0.18" "1.08" "0.74"
#> [991] "0.32" "-1.00" "0.10" "-0.53" "1.46" "-0.73" "-0.36" "0.55" "-1.20"
#> [1000] "-0.06"