R programming examples