search for: dfid

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

Did you mean: 3fid
2012 Feb 26
1
Matrix problem to extract animal associations
...ple code can be found below. Very best wishes, Ross Dr Ross Dwyer Postdoctoral Research Fellow University of Queensland > ### > require(stats) > x <- sample(1:20,10) > y <- sample(1:20,10) > IDs <- sapply(1:10,function(i) paste("ID",i,sep="")) > (DFid <- data.frame(x,y)) x y 1 7 20 2 5 3 3 12 5 4 3 12 5 18 19 6 2 1 7 19 15 8 20 11 9 13 14 10 1 2 > > > (DMdist <- dist(DFid, method = "euclidean", + diag = FALSE, upper = TRUE)) 1 2 3 4 5...