0
我试图初始化基于尺寸和维数由矢量索引所定义的数据帧: 例如 -从由矢量定义的尺寸的已知列表初始化数据帧
ind1 <- c('red', 'blue')
ind2 <- c('circle', 'square', 'triangle')
myFun(ind1,ind2) # this is the great function that yields your result:
red circle
red square
red triangle
blue circle
blue square
blue triangle
完美,这个执行奇妙。如果您将此作为答案,我会将其标记为正确! – Sarobinson
@Psidom让它成为一个答案伙计:) – Wen