R example programs for tutorial