R Programming By Example