In your t-test function call, R isn't sure where to find your cre and gender vectors. These are in the Book1 data frame. To access a column in a data.frame in R, use the $ extract operator.
t.test(Book1$cre ~ Book1$gender, var.eq =TRUE)
For a nice intro into R for Data Science, check out Garrett and Hadley's book