我正在尝试写一个代码来模拟大小为4*16*10的3D数组,其中每个单元包含10*10个矩阵 到目前为止,我已经嵌套了for循环,但是它们非常慢。我想用apply或mapply函数替换它们。 M=10c=2p=0.25ntrials = 10
for (j in 1:length(q)){ plant_subm=matrix_plantsubm(M,N,c,n,p,q)
以下是供参考的accepts_nested_attributes_for文档(来源:)# matched record for destruction.# For example:# assign_nested_attributes_for_collection_associationassociatied Person with ID 2
# f