Skip to content
Prev 132521 / 398506 Next

factor manipulation: edgelist to a matrix?

do.call(rbind,lapply(split(as.character(z[,2]),z[,1]), 
function(x) c(x, rep(NA, max(table(z[,1]))-length(x)))))

Jacques VESLOT

CEMAGREF - UR Hydrobiologie

Route de C?zanne - CS 40061      
13182 AIX-EN-PROVENCE Cedex 5, France

T?l      + 0033   04 42 66 99 76
email   jacques.veslot at cemagref.fr