t.test() works with vectors not data frames so I think you might want to use it inside a mutate() function.
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.
t.test() works with vectors not data frames so I think you might want to use it inside a mutate() function.
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.