search for: 2vs2

Displaying 1 result from an estimated 1 matches for "2vs2".

Did you mean: 2v2
2012 Aug 01
3
repeating a function across a data frame
...pectively distance<-sqrt(sum((x-y).^2)) distanceCorrected<-distance/sqrt(length(x))#to force the maximum possible value to =1 print(distanceCorrected) } The next thing I want to do is to make this function run to compare all possible combinations of my samples (1vs1, 1vs2, 1vs3...2vs1, 2vs2 etc). In python, the only other programming language I have ever used, I would just use a "for" loop. I have asked the internet how to do this, but the overwhelming response seems to be "you don't want to do it like that - use the 'apply' functions". I've trie...