Set

s1 = {'a', 'b', 'c', 'd', 'e'}
s2 = {'aplha', 'bravo', 'charly', 'd', 'e', 'f'}

## union
s1.union(s2)

## intersection to find common value in both set
## {'e', 'a', 'f', 'c', 'b', 'bravo', 'd', 'aplha', 'charly'}
s1.intersection(s2)
## {'e', 'd'}

Control flow statement

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.