Why does ff still store data in RAM?

后端 未结 3 1989
广开言路
广开言路 2021-01-19 06:48

Using the ff package of R, I imported a csv file into a ffdf object, but was surprised to find that the object occupied some 700MB of RAM. Isn\'t ff supposed to keep data on

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-19 06:59

    I had the same problem, and posted a question, and there is a possible explanation for your issue. When you read a file, character rows are treated as factors, and if there is a lot of unique levels, they will go into RAM. ff seems to load always factor levels into RAM. See this answer from jwijffels in my question:

    Loading ffdf data take a lot of memory

    best, miguel.

提交回复
热议问题