textbooks | R Documentation |
A random sample was taken of nearly 10\ textbook for each course was identified, and its new price at the UCLA Bookstore and on Amazon.com were recorded.
textbooks
A data frame with 73 observations on the following 7 variables.
Course department (abbreviated).
Course number.
Book ISBN.
New price at the UCLA Bookstore.
New price on Amazon.com.
Whether additional books were required for the course (Y
means "yes, additional books were required").
The UCLA Bookstore price minus the Amazon.com price for each book.
The sample represents only courses where textbooks were listed online
through UCLA Bookstore's website. The most expensive textbook was selected
based on the UCLA Bookstore price, which may insert bias into the data; for
this reason, it may be beneficial to analyze only the data where more
is "N"
.
Collected by David Diez.
library(ggplot2)
ggplot(textbooks, aes(x = diff)) +
geom_histogram(binwidth = 5)
t.test(textbooks$diff)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.