R function of the day: prevent exponential representation with format


Sometimes R displays results in scientific notation, which wouldn’t be bad if the exponent base didn’t differ:

This can be easily prevented by adding:format(x, scientific=FALSE)

Leave a Reply

Your email address will not be published. Required fields are marked *