Handling of large numbers in R


#1

I have come across a R dataset which is having a numeric value in the order of 10^14. Whenever I import it R is showing it in an exponential notation. Suggest me some way how I can handle this so that I can view the full number without loss of precision.


#2

Just transform the number to simpler number. Like a factor of 1^10. You will not loose any precision as you are changing the entire data set.

Simply use options(scipen = 999)


#3

Hi @Sohamc

You use bit64 package and convert the numeric values using as.bit64 commands available in the package.


#4

Hi @saraswatmks,

Thanks… It worked fine…:slight_smile: