I had an .rda file with a large list, that looked like this:
[[1]] Null
[[2]] Null
...
[[1000]] (Some data)
...
The first K
empty rows (999 in the example) were created because of bug in the code, so I decided to delete all the 1:K
rows. After saving the file it has grown large in size: before it was <1 GB and after it was >16GB. How could that be? How to fix it?
I can imagine that the problem is that before editing the list it had values from 1 to N
, and after the editing it contains only values from K+1
to N
, but is it so different? If this is the problem, how to clear the indexing?