I have a homework to analyze data of Bloomberg Billionaires Index in R Studio, but I am facing a problem with the periods.. There are three forms of values:
- 185B (No periods)
- 18.5B (one digit after the period)
- 1.85B (two digits after the period)
I want to delete the dots and add nine zeros in place of the billion symbol (B) but that means the three values will be the same. Is there a way to add:
- Nine zeros for the first formula (where there are no points)
- Eight zeros for the second formula (where there is one digit after the period)
- Seven zeros for the third formula (where there are two digits after the period)
Thank you!!