Skip to content
Prev 22334 / 398502 Next

extracting data from a dataframe

Hi everyone,

Here's a question about extracting data from a dataframe:

Let's say I've got a dataframe with two vectors, TEST and GENDER. GENDER
contains a 1 for males and 2 for females. I want to separate the results
of TEST by GENDER so I can compare their means.

What's the most efficient way to do this with R?

-Tim