"R 벡터 합치기"의 두 판 사이의 차이

3번째 줄: 3번째 줄:
;R 벡터 합치기
;R 벡터 합치기


==integer==
<source lang='r' run>
<source lang='r' run>
x = c(1, 2, 3)
x = c(1, 2, 3)
11번째 줄: 12번째 줄:
</source>
</source>


==character==
<source lang='r' run>
<source lang='r' run>
x = c(1, 2, 3)
x = c(1, 2, 3)

2020년 5월 14일 (목) 01:36 판

1 개요

R vector 합치기
R 벡터 합치기

2 integer

x = c(1, 2, 3)
y = c(4, 5, 6)
z = c(x, y)
z
class(z)

3 character

x = c(1, 2, 3)
y = c("apple", "orange", "banana")
z = c(x, y)
z
class(z)

4 같이 보기

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