what does the resistor do on this switch as others dont have one ?

is this what givesit the 3 speed ?

will this turn a 2 speed into a 3 speed ?

thank you !