R analysis