R code added

Signed-off-by: abhinavvv <abhinavvv@gmail.com>