I have many data.tables in memory with names following a specific pattern (e.g.: RE_1, RE_2... CO_1, CO_2...). I want to bind them efficiently to get only two data.tables (RE and CO).
I tried:
RE <- rbindlist(ls(pattern = "RE"))
But I got the following error: "Error in rbindlist(ls(pattern = "RE")) :
Input to rbindlist must be a list of data.tables".
Is there a way to make such a "usable" list of data.tables (or data frames)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…