R matrix()

Jmnote bot (토론 | 기여)님의 2021년 10월 9일 (토) 00:40 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

R matrix()
R
CPU
2.6s
MEM
115M
3.0s
Reload
Copy
matrix( c(1,2,3,4,5,6), 2, 3)
A matrix: 2 × 3 of type dbl
135
246
Copy
matrix( c(1,2,3,4,5,6), 3, 2)
A matrix: 3 × 2 of type dbl
14
25
36
Copy
matrix( c(1,2,3,4,5,6), nrow=2, ncol=3)
A matrix: 2 × 3 of type dbl
135
246
Copy
matrix( c(1,2,3,4,5,6), nrow=2, ncol=3, byrow=TRUE)
A matrix: 2 × 3 of type dbl
123
456

2 같이 보기[ | ]

3 참고[ | ]