For R programming