What is the main advantage of RF over infrared technology?

infrared is limited to (line of sight) communications.