Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

How to round off labels in cut function in R

$
0
0

I am trying to round off my labels from cut function in R using dig.lab argument. I have given value as 20 but I get lot of decimal places after number in labels e.g. (114126.30000000001746,5248999] . And if I reduce the value of dig.lab to 5, the labels come in scientific notation for e.g. (1.1413e+05,5.249e+06]

I want to round it off and limit to 4 decimal places with no scientific notation, any suggestions?


Viewing all articles
Browse latest Browse all 201839

Trending Articles