A measurement of the W boson mass in proton-antiproton collisions at a center of mass energy of 1.8 TeV