"R matrix()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
2번째 줄: 2번째 줄:
;R matrix()
;R matrix()


<source lang='r' run>
<syntaxhighlight lang='r' notebook>
matrix( c(1,2,3,4,5,6), 2, 3)
matrix( c(1,2,3,4,5,6), 2, 3)
</source>
</syntaxhighlight>
<source lang='r' run>
<syntaxhighlight lang='r' notebook>
matrix( c(1,2,3,4,5,6), 3, 2)
matrix( c(1,2,3,4,5,6), 3, 2)
</source>
</syntaxhighlight>
<source lang='r' run>
<syntaxhighlight lang='r' notebook>
options(echo = TRUE)
matrix( c(1,2,3,4,5,6), nrow=2, ncol=3)
A <- matrix( c(1,2,3,4,5,6), nrow=2, ncol=3)
</syntaxhighlight>
class(A)
<syntaxhighlight lang='r' notebook>
str(A)
matrix( c(1,2,3,4,5,6), nrow=2, ncol=3, byrow=TRUE)
A
</syntaxhighlight>
</source>
<source lang='r' run>
options(echo = TRUE)
A <- matrix( c(1,2,3,4,5,6), nrow=2, ncol=3, byrow=TRUE)
class(A)
str(A)
A
</source>


==같이 보기==
==같이 보기==

2021년 10월 9일 (토) 00:40 기준 최신판

1 개요[ | ]

R matrix()
matrix( c(1,2,3,4,5,6), 2, 3)
matrix( c(1,2,3,4,5,6), 3, 2)
matrix( c(1,2,3,4,5,6), nrow=2, ncol=3)
matrix( c(1,2,3,4,5,6), nrow=2, ncol=3, byrow=TRUE)

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}