filmov
tv
Test if Vector Contains Certain Element in R (Example) | Check for Given Value with %in% Operator

Показать описание
R Code of the tutorial:
vec <- c("AAA", "Hello", "12345", "X") # Create example vector
"AAA" %in% vec # Test if AAA is in vector
# TRUE
"A" %in% vec # Test if A is in vector
# FALSE
Комментарии