search for: distancet

Displaying 1 result from an estimated 1 matches for "distancet".

Did you mean: distance
2012 Aug 01
3
repeating a function across a data frame
...functions, but I tend to find that I can only give my DistanceCalc function a single vector (I can tell it where to find x, but not where to find y, or vice versa). I've also found the 'by' and the 'outer' functions, but I'm likewise failing at making those work, e.g. > distancetable<-outer(DataWithoutBlanks,DataWithoutBlanks,FUN=DistanceCalc) Error in x - y : non-numeric argument to binary operator I think this may be because my data has headers and the function is trying to calculate the difference between the names of my samples, but I don't know how to correct t...