R/stratify.R

stratify <-
function (dataset){
    xx <- apply(dataset, 1, function(x) paste(x, collapse = "\r"))
    tab <- table(xx)
    st <- names(tab)
    strata <- match(xx,st)
    return(strata)
}
ChristopherLucas/MatchingFrontier documentation built on June 10, 2020, 6:01 p.m.