Preserving large numbers

后端 未结 8 1805
一生所求
一生所求 2020-12-01 18:30

I am trying to read a CSV file that has barcodes in the first column, but when R gets it into a data.frame, it converts 1665535004661 to 1.67E+12.<

8条回答
  •  余生分开走
    2020-12-01 19:10

    try working with colClasses="character"

    read.csv("file.csv", colClasses = "character")
    

    http://stat.ethz.ch/R-manual/R-devel/library/utils/html/read.table.html

    Have a look at this link.

提交回复
热议问题