getDec: Return the number of decimal places.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/util.R

Description

Return the number of decimal places.

Usage

1
getDec(x)

Arguments

x

A numeric vector.

Value

Number of decimals

Author(s)

Based on http://stackoverflow.com/questions/5173692/how-to-return-number-of-decimal-places-in-r, but improved

See Also

Other Utility functions: findAbsMin(), find_n_neighbors(), firstLetterCap(), getArrowPos(), getRange(), getRatioCoords(), get_palette(), group_sort(), inch2coords(), isColor(), list2str(), move_n_point(), orderBoxplot(), se(), sortGroups()

Examples

1
getDec(c(10,10.432, 11.01, .000001))

Example output

[1] 0 3 2 6

plotfunctions documentation built on April 28, 2020, 5:10 p.m.