If you mean the resistor on the far left - unlabelled but next to R6 - then it is the load resistor. If you replaced it with a short then the opto wouldn't be able to pull down pin 1 of the IC. If you omitted it altogether then the transistor would have no load and the output on the collector would be zero all the time.