官术网_书友最值得收藏!

Getting ready

To convert a matrix to a data frame and a data frame to a matrix, first, create a matrix and a data frame to get started, as follows:

    M1 <- matrix(1:9, nrow=3, ncol= 3, byrow=TRUE)
D1 <- data.frame(x1= c(1,3,2,4,5), x2= c("Cricket", "Football",
"Basketball", "Rugby", "Baseball" ))
主站蜘蛛池模板: 古田县| 巩留县| 贵港市| 屯留县| 富蕴县| 龙川县| 商水县| 巴里| 开远市| 兴化市| 万山特区| 浦县| 台北市| 合山市| 芷江| 铅山县| 绥德县| 广宗县| 奉化市| 万盛区| 大洼县| 德化县| 沅江市| 佛学| 霸州市| 三都| 军事| 收藏| 泾川县| 高清| 伊宁县| 西乡县| 昆明市| 洛宁县| 上思县| 徐州市| 房山区| 满城县| 错那县| 岳阳县| 金昌市|