R codes basically.