阅读背景:

如何在R中将数据帧转换为3d数组

来源:互联网 

I have a data frame that I want to convert to a three-dimensional array. One of the columns in the data frame should serve as the grouping variable for splitting the frame into 2d matrices that can be combined into the array. In the following minimal working example, the data frame should be split into matrices by the variable "i", then combined into a 4x4x2 array. The solution should be practical for large data sets and ideally could be generalized to convert a data frame into a n dimensional array.I have a data frame that I want to convert to a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: