【发布时间】:2026-01-31 14:05:03
【问题描述】:
我正在寻找一种在 R 中撤消 array_reshape() 函数的方法。欢迎提供任何帮助。
library(reticulate)
mat <- matrix(rep(1:1000), nrow = 10)
mat.1 <- array_reshape(mat, c(nrow(mat), 10,10,1))
# make mat.2 the same dimensions as mat
mat.2 <- ???
【问题讨论】:
-
请包含对
library(reticulate)的调用,因为array_reshape不是基本函数。
标签: r arrays matrix reshape reticulate