search for: 185x32

Displaying 1 result from an estimated 1 matches for "185x32".

Did you mean: 18532
2005 Apr 18
2
Very Slow Gower Similarity Function
...vegan package) does not accept missing values. I think I have succeeded - my function gives me the correct values. However, now that I'm starting to use it with real data, I realise it's very slow. It takes more than 45 minutes on my Windows 98 machine (R 2.0.1 Patched (2005-03-29)) with a 185x32 matrix with ca 100 missing values. If anyone can suggest ways to speed up my function I would appreciate it. I suspect having a pair of nested for loops is the problem, but I couldn't figure out how to get rid of them. The function is: ### Gower Similarity Matrix### sGow <- function (mat)...