solicito ayuda para hacer tarea en R con datos, pero no sé cómo se hace

Hi, welcome!

Please have a look to our homework policy, homework inspired questions are welcome but they should not include verbatim instructions from your course.