Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

%in% r

library(dplyr)

home.dests <- c("St Louis, MO", "New York, NY", "Hudson, NY")

# Subsetting using %in% in R:
dataf %>%
  filter(home.dest %in% home.dests)
Code language: R (r)
Source by www.marsja.se #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+2 =