readr : Turn off scientific notation in write_csv

后端 未结 6 2017
谎友^
谎友^ 2021-02-07 02:54

I am using R to process Census data which uses really long numeric GEOIDs to identify the geographies. The issue I am facing is when writing out the processed data using w

6条回答
  •  名媛妹妹
    2021-02-07 03:29

     require(dplyr)    
     tbl_df = mutate_if(tbl_df, is.numeric, as.integer)
    

    I think it would be safer to recode those columns into string while exporting the CSV in such a case

提交回复
热议问题