R - readRDS() & load() fail to give identical data.tables as the original

后端 未结 4 2129
野趣味
野趣味 2021-02-13 13:44

Background

I tried to replace some CSV output files with rds files to improve efficiency. These are intermediate files that wi

4条回答
  •  我在风中等你
    2021-02-13 14:24

    The solution is to use setDT after load or readRDS

    aDT2 <- readRDS("aDT2.RData")
    setDT(aDT2)
    

    source: Adding new columns to a data.table by-reference within a function not always working

提交回复
热议问题