On Fri, Apr 9, 2010 at 10:23 AM, David Nemer <davidne...@gmail.com> wrote:
> Would that also work if in one ranking I have a filename that it is not in
> the other ranking?

match() will return an NA, if it cannot find a match, in which case
you could use the argument: use="pairwise.complete.obs") in cor() to
have it only use pairs with complete data.

> Eg:
> Ranking X:
> A
> B
> C
> Ranking Y:
> A
> D
> C

In this example, you would get a correlation of 1, because B from x
does not match anything in y, and D from y does not match x, so you're
left with A and C which are in the same positions.

>
> --
> David Nemer

-- 
Joshua Wiley
Senior in Psychology
University of California, Riverside
http://www.joshuawiley.com/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to