Sam Allardyce says it was a 'perfect result' for his West Ham side as they scored twice and kept a clean sheet in their win over QPR.