Skip to content
Prev 139883 / 398525 Next

Using "subset" in correlation analysis

You have to use the formula interface, so something like this:

cor.test(~ Alt + Cab, data=adults, alternative="greater", subset=Sex=="male")

David
On Wed, Mar 19, 2008 at 12:59 PM, James J. Roper <jjroper at gmail.com> wrote: