add R analysis