Re: [R] Most often pairs of chars across grouping variable

2008-07-30 Thread svga
Hi Marc, many thanks, that is exactly what I was looking for. Best, Sven - Original Nachricht Von: Marc Schwartz [EMAIL PROTECTED] An: [EMAIL PROTECTED] Datum: 29.07.2008 17:15 Betreff: Re: [R] Most often pairs of chars across grouping variable on 07/29/2008 09:51 AM

[R] Most often pairs of chars across grouping variable

2008-07-29 Thread svga
Hi list, is there a package or function to compute the frequencies of pairs of chars in a variable across a grouping variable? Eg: d - data.frame(ID=gl(2,3), F=c(A,B,C,A,C,D)) d ID F 1 1 A 2 1 B 3 1 C 4 2 A 5 2 C 6 2 D Now I want to summarize the frequencies of all pairs A-B, A-C,

Re: [R] Most often pairs of chars across grouping variable

2008-07-29 Thread Marc Schwartz
on 07/29/2008 09:51 AM [EMAIL PROTECTED] wrote: Hi list, is there a package or function to compute the frequencies of pairs of chars in a variable across a grouping variable? Eg: d - data.frame(ID=gl(2,3), F=c(A,B,C,A,C,D)) d ID F 1 1 A 2 1 B 3 1 C 4 2 A 5 2 C 6 2 D Now I want to