Measurement of the TeV atmospheric muon charge ratio with the complete OPERA data set