集的均值和方差的數據集我有此數據集structure(list(Color = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), .Label = c("blue", "green", "red" ), class = "factor")), .Names = "Color", row.names = c(NA, -30L ), class = "data.frame")
生成基於彩色
我想補充指派爲5的平均值和2於藍色的方差,10的平均柱並且方差4到綠色,平均值100和方差15到紅色。
是否回答幫助? –