| concstats_shares | R Documentation |
The concstats_shares function is a helper function making it easier
to convert numeric variable into individual shares. This might be convenient
for larger vectors.
concstats_shares(x, na.rm = TRUE, digits = NULL)
x |
A non-negative numeric vector. |
na.rm |
A logical vector that indicates whether |
digits |
An optional value for digits. Specifies the minimum number of
significant digits to be printed in values. The default is |
concstats_shares is a helper function. The user can manually
convert or provide numerical vectors of shares or use
constats_shares.
A numeric vector in decimal form.
# a vector of loans (without special characters, e.g. currency symbols)
x <- c(538572286.08, 481096.77, 161914143.03, 128796268.59, 69055940.72)
concstats_shares(x)
# a vector with NA values
x2 <- c(538572286.08, 481096.77, 161914143.03, 128796268.59, 69055940.72, NA)
concstats_shares(x2, na.rm = TRUE, digits = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.