R programming basics for beginners