num.minal = function(a1,a2) { aall = c(a1,a2) tab = table(aall) miname = names(tab)[tab==min(tab)] apply(cbind(a1==miname,a2==miname),1,sum) }
Post a Comment
No comments:
Post a Comment