The primary function of Ankyrin R is to anchor the plasma membrane to the cytoskeleton in erythrocytes. It binds to Band 3 protein (anion exchanger 1) and spectrin, forming a complex that maintains the biconcave shape and mechanical stability of RBCs. This interaction is crucial for the deformability and durability of red blood cells as they traverse the capillary network.