View source: R/specifyDecimals.R
specify_decimal | R Documentation |
Specify the number of decimals to print.
specify_decimal(x, k)
x |
Numeric vector. |
k |
Number of decimals to print. |
[INSERT].
Character vector of numbers with the specified number of decimal places.
Other formatting:
apa()
,
pValue()
,
suppressLeadingZero()
# Prepare Data
v1 <- rnorm(1000)
# Specify Decimals
specify_decimal(v1, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.