Auto Rounding in R

Hi everybody,

I have data with many variables. I used many functions: mutate, merge,...etc to create new variables. But when I check my result data again. I don't know why R auto rounding.
For example, the variable "Total asset" at the beginning is 37366108654179 , but after that I checked it, it returns 37400000000000.
Please guide me how to solve this.
Thank you in advance.

Hi @sirius1170 Welcome!

I think you'll need to supply some more info in order for people to be able to help figure out what's going on. The best thing would be if you can make your question into a reproducible example (follow the link for instructions and explanations).

If you try all that and get stuck, here's a fallback option...
  1. Edit your post and add in some of the code you have tried. It's OK if it doesn't work! It's really helpful to see what you've been attempting. Be sure to format your code as code (it's hard to read unformatted code, and it can get garbled by the forum software)
  2. Also add in some basic info about your data:
    • Run the following line and paste the output into your post. Again, be sure to format it as code :sparkles:
    str(your_dataframe_name)
    
    Note: this will share some information about your data. If it's truly confidential, I'm afraid you'll need to make up a sample dataset to share.
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.