Completing missions is the intended way to gain RP, as they're the bulk of GTA Online and contain all sorts of objectives and play styles. You can compile some of the missions that give out the most RP in a playlist, either by yourself or with a crew, to tackle them efficiently.