Description Usage Arguments Details Value See Also Examples
Obtain the most significant digits of numbers in numeric vectors or matrices.
1 | msdigit(x)
|
x |
A numeric vector or matrix. |
For each non-zero, non-missing element of x, msdigit returns the first digit of that number's floating point representation of base 10. NA values in x generate NA values in the output of msdigit.
msdigit returns a numeric vector with length equal to the number of non-zero elements of x plus the number of NA values in x.
smsdigit to obtain the second most significant digits of numbers.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.