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 © 2004-2006 [email protected]
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.