Good day. I am an R beginner. I have a data set with 2 different groups (group 1 and group 2) and I would like to do paired t-tests on only group 1 or only group 2. I calculated energy at time point 1 and at time point to for members of each group.
This doesn't give me what I need because it's not by group:
t.test(mydata$energytime1,mydata$energytime2, mu=0, alt="two.sided", conf=0.95, paired=T)
Thanks.
Link below is what my data looks like.