What would the calculated score be for the example you give?

Jean


On Wed, Oct 30, 2013 at 7:03 AM, Stevan Lauriault <
stevan.lauriault@gmail.com> wrote:

> Hi,
>
> I'm looking for a function that takes a list and calculates a score based
> on
> how well "like attracts like".
> For example:
>
> list1 <- c(john, eric, steve, john, eric, scott, john)
> list2 <- c(john, john, john, eric, eric, steve, scott)
>
> score(list1) < score(list2)
>
> Both lists are composed of the same names and frequency of each
> name.
>
> Not sure how else to put it.  I am relatively new to R.  Have tried the
> modularity function, but can't seem to get it to work for this purpose.
>
>
> Any help is appreciated.
>
> Steve
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

