组合 data.tables 列表 [英] Combine a list of data.tables

查看:18
本文介绍了组合 data.tables 列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种特定的方法可以在 R 中组合 data.tables 列表?

Is there a specific method for combining a list of data.tables in R?

我有一个大约 20 个 data.table 的列表,每个都有大约 100 万行,我想将它们组合成一个有 2000 万行的 data.table.

I have a list of ~20 data.tables, each with around 1 million rows, and would like to combine them into one data.table with 20 million rows.

我一直在这样做

Reduce('rbind', data.table)

但这需要一段时间.

Tnx!

推荐答案

查看 ?rbindlist 和这些相关问题(当你知道要搜索什么时更容易找到!):

See ?rbindlist and these related questions (easier to find when you know what to search for!) :

data.table问题和答案包含rbindlist

这篇关于组合 data.tables 列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆