OpenIntro features a number of free books that can be used in high school and AP statistics courses. The license on these datasets is currently unknown. You can find out more about OpenIntro at https://www.openintro.org.
Simulated data set.
type - a factor with levels fiction and nonfiction
format - a factor with levels hardcover and paperback