Stefan
Member
Code:comps = function(loc) { return(length(FMC$Location[FMC$Location == loc])) }
Thanks for showing the program and for the data. But why the above way and not like this?
Code:
comps = function(loc) {
return sum(FMC$Location == loc)
}