R 벡터 합치기

Jmnote (토론 | 기여)님의 2020년 7월 29일 (수) 02:58 판

1 개요

R vector 합치기
R 벡터 합치기

2 numeric

  • 숫자 벡터와 숫자 벡터를 합치면 숫자 벡터
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 }}