Error in eval(predvars, data, env) : object 'cre' not found

If your problem is solved, can you please mark this response as a solution? I fyou don't know how, please see here: FAQ: How do I mark a solution?.


An equivalent way of doing this to avoid specifying the data frame name multiple times is the data argument:

t.test(cre ~ gender, Book1, var.eq =TRUE)
1 Like