SQL-like functionality in R

房东的猫 提交于 2019-12-05 01:37:15

look at the package sqldf. http://code.google.com/p/sqldf/ It seems perfect for your needs.

Josh Reich

I'm also more comfortable with SQL, but when working with large data sets in R, my favourite manipulation tool is the data.table package. Unlike sqldf, which lets you write SQL in R, data.table lets you write R in R - but gives you the ability to add indexes on data frames (well, data.tables, to be precise). The ability to index data frames makes 'joins' much much much faster. And being an R implementation, your code still looks like R.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!