Is there a way to build a mean of rows within a data.frame?

I need to run a t-test. I would like to check two different samples (which don't have the same number of participants) on the same question.

R tells me that arguments must have the same length. Can I somehow reduce the larger sample (200 observations) to the number of arguments of the smaller sample (28 observations) without loosing data?

Thanks a lot!

Read more here:

Content Attribution

This content was originally published by Hi_I'm_Lost at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: