Java对象类似于R data.frame [英] Java object analogue to R data.frame

查看:181
本文介绍了Java对象类似于R data.frame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常喜欢R中的data.frames,因为你可以在一个数据结构中存储不同类型的数据,并且你有很多不同的方法来修改数据(添加列,组合data.frames,...),它从数据中提取子集非常容易,...

I really like data.frames in R because you can store different types of data in one data structure and you have a lot of different methods to modify the data (add column, combine data.frames,...), it is really easy to extract a subset from the data,...

是否有可用的Java库具有相同的功能?我最感兴趣的是以类似矩阵的方式存储不同类型的数据,并能够提取数据的子集。

Is there any Java library available which have the same functionality? I'm mostly interested in storing different types of data in a matrix-like fashion and be able to extract a subset of the data.

在Java中使用二维数组可以提供类似的结构,但是添加一个列并随后提取前k个记录要困难得多。

Using a two-dimensional array in Java can provide a similar structure, but it is much more difficult to add a column and afterwards extract the top k records.

推荐答案

我刚刚开源了 Paleo ,一个Java 8库,它提供基于类型列的数据框(包括对原始值的支持)。可以通过编程方式(通过简单的构建器API)创建列,也可以从文本文件导入列。

I have just open-sourced a first draft version of Paleo, a Java 8 library which offers data frames based on typed columns (including support for primitive values). Columns can be created programmatically (through a simple builder API), or imported from text file.

请参阅自述文件了解更多详情。

该项目从出生开始仍然潮湿 - 我对反馈/ PR非常感兴趣,tia!

The project is still wet from birth – I am very interested in feedback / PRs, tia!

这篇关于Java对象类似于R data.frame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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