Thank you, @zx8754! I tried using your code. It filters the markers but gives an error at the end:
Error in rbindlist(lapply(1:40, function(i) { :
Item 1 of input is not a data.frame, data.table or list
My input files for the loop are RData files.
Have you tried this using
freadanddata.table? I think it might work, becausedata.tableis a lot more performant with tables in the millions-of-rows range of records thandata.frameever can be. If I recall correctly,freadeven has streaming support so it won't need to store the entire file in memory.Yes, I imported the file using
data.tableandfread. And then I used the above command to filter markers. But R session still gets aborted.Can you edit your question and add the exact code you're using please? You might also want to check stackoverflow on how to enhance the performance of
fread.I have edited the question and I have added an additional problem in saving text file to RData file which I think could be the reason.
Side note: It's not good practice to use keywords as variable names, like you're doing with
na.