New function: labels2R().