in Digital

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)

Write a Comment

Comment

  • Related Content by Tag