[R] Ranking correlation with R

Joshua Wiley jwiley.psych at gmail.com
Fri Apr 9 18:14:21 CEST 2010

On Fri, Apr 9, 2010 at 8:58 AM, David Nemer <davidnemer at gmail.com> wrote:
> Hello Joshua,
> Thanks for your help. The ranking list doesn't have numbers (it doesn't
> matter the name of the file), just the file name, and the ranking is assumed
> base on the position of the file name in the list (so the first filename to
> appear is ranked number 1). So I guess I would just need to add the
> filenames into a vector (array) for both rankings and then compare them.. is

You would add both lists to vectors.

> it right? And to compare them I would use cor() right?

cor() requires numeric data.  To use it in this case, you would need
to come up with rankings based on the position for each file name, and
use those pairs of numbers with cor().

> Cheers,
> --
> David Nemer

Joshua Wiley
Senior in Psychology
University of California, Riverside

More information about the R-help mailing list