Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

%in% in R

1:2 %in% rep(1:2,5)
#[1] TRUE TRUE

rep(1:2,5) %in% 1:2
#[1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE

#Note this output is longer in second
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #R
ADD COMMENT
Topic
Name
9+5 =