Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Sets



> a <- 1:9
> b <- c(4,5)
> setdiff(a, b)		# [1] 1 2 3 6 7 8 9
> union(a, b)		# [1] 1 2 3 4 5 6 7 8 9
> intersect(a, b)	# [1] 4 5
> setequal(a, b)	# [1] FALSE



Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010