https://cran.r-project.org/web/packages/polymatching/index.html
CRAN: Package polymatching
Includes functions implementing the conditionally optimal matching algorithm, which can be used to generate matched samples in designs with multiple groups....
cranpackage