행과 열을 반대로 만들기
(=원소 값의 할당 순서는 행 기준이다.)
matrix(c(1:9), nrow=3, byrow=TRUE)
'programing > R studio' 카테고리의 다른 글
[R/R언어/R프로그래밍] 배열(array) (0) | 2018.04.25 |
---|---|
[R/R언어/R프로그래밍] 행과 열의 이름 넣기 - rownames(), colnames(), dimnames() (0) | 2018.04.25 |
[R/R언어/R프로그래밍] 행렬(matrix) (0) | 2018.04.25 |
[R/R언어/R프로그래밍] 결측치 - NULL, NA, inf, NaN (0) | 2018.04.24 |
[R/R언어/R프로그래밍] sum(), mean(), var(), sd(), sqrt(), length(), abs() (0) | 2018.04.24 |