Re: [R] cor vs cor.test

From: Suresh Krishna <ssk2031_at_columbia.edu>
Date: Thu 26 May 2005 - 07:17:58 EST

From:

?cor.test

Arguments:

     x, y: numeric vectors of data values.  'x' and 'y' must have the
           same length.

-s.

Michael Grant wrote:
> Using Windows System, R 2.1.0
>
> d is a data frame, 48 rows, 10 columns
> cor(d) works properly providing all pairwise Pearson correlation
> coefficients among columns
> cor.test(d) gives error message "Error in cor.test.default(d) : argument
> "y" is missing, with no default"
>
> Why?
>
> Thanks,
> MCG
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu May 26 07:22:50 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:06 EST