矩阵(R语言)

mymatrix <- matrix(vector, nrow=number_of_rows, ncol=number_of_columns,byrow=logical_value,dimnames=list(char_vector_rownames,char_vector_colnames))

vector: elements of the matrix
byrow=FALSE: by column (by default)
byrow=TRUE:by row

posted @ 2017-06-26 10:09  2021年的顺遂平安君  阅读(149)  评论(0编辑  收藏  举报