
David B. answered 02/20/21
Math and Statistics need not be scary
I am not a super expert, but I have come across the same warnings. Subset generally will create a separate index or data.frame. It may do it recursively (i.e. back into the original data.frame) but it creates separate files and if necessary, merges them. The use of the bracket indexing [ ]. is that the filtering is relational. It creates a temporary relationship which treats the original data.frame as a part of itself. Thus you do what you need to do without creating multiple copies. Much faster. That is probably why the warnings. As long as you have data.frames with less than 100,000 entries (width x nrows), I wouldn't worry.