R 리스트 요소 있는지 확인

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 }}