Python 如何将压缩的PyTables CArray与R一起使用?

Python 如何将压缩的PyTables CArray与R一起使用?,python,r,pytables,Python,R,Pytables,使用PyTables,我创建了一个压缩的CArray: f = tables.openFile('/myPath/test.h5', 'w') atom = tables.Atom.from_dtype(myNumpyArray.dtype) ds = f.createCArray(f.root, 'myArray', atom, myNumpyArray.shape, filters=tables.Filters(5, 'blosc')) ds[:] = myNumpyArray f.clos

使用PyTables,我创建了一个压缩的CArray:

f = tables.openFile('/myPath/test.h5', 'w')
atom = tables.Atom.from_dtype(myNumpyArray.dtype)
ds = f.createCArray(f.root, 'myArray', atom, myNumpyArray.shape, filters=tables.Filters(5, 'blosc'))
ds[:] = myNumpyArray
f.close()
如何将数组加载到R中?我尝试了“rhdf5”软件包,但出现以下错误:

H5恐惧中出错(h5dataset=h5dataset,h5spaceFile=h5spaceFile,h5spaceMem=h5spaceMem,: HDF5.Dataset.Read失败

在R中是否可以使用这种数组?如果可以,是否可以只加载数组的一部分而不加载整个数组?
希望有人能帮助我。谢谢。

PyTables存储了元数据。您需要一个自定义函数,请参阅


有关详细信息。

PyTables已存储元数据。您将需要一个自定义函数,请参阅

详情请参阅