R 리스트 요소 있는지 확인

Jmnote (토론 | 기여)님의 2019년 12월 15일 (일) 00:32 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

R 리스트 요소 있는지 확인
v <- list('hello','world','lorem','ipsum')

print('hello' %in% v)
## [1] TRUE
print('yellow' %in% v)
## [1] FALSE

print(!'hello' %in% v)
## [1] FALSE
print(!'yellow' %in% v)
## [1] TRUE

2 같이 보기[ | ]

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