Challenge: Matrix Row Means
Tarea
Swipe to start coding
You are given three different data objects: a matrix of student scores, a list of monthly sales for stores, and a vector of product prices.
- Use the
applyfunction to find the highest score for each student (each row in the matrix). - Use the
lapplyfunction to calculate the total sales for each store in thesales_list. - Use the
sapplyfunction to round each price inpricesto the nearest integer, and store the result in a variable calledrounded_prices.
Store your results in variables named:
student_highest_scoresfor the highest scores per student;store_total_salesfor the total sales per store;rounded_pricesfor the rounded product prices.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 2
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 5.56
Challenge: Matrix Row Means
Desliza para mostrar el menú
Tarea
Swipe to start coding
You are given three different data objects: a matrix of student scores, a list of monthly sales for stores, and a vector of product prices.
- Use the
applyfunction to find the highest score for each student (each row in the matrix). - Use the
lapplyfunction to calculate the total sales for each store in thesales_list. - Use the
sapplyfunction to round each price inpricesto the nearest integer, and store the result in a variable calledrounded_prices.
Store your results in variables named:
student_highest_scoresfor the highest scores per student;store_total_salesfor the total sales per store;rounded_pricesfor the rounded product prices.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 2
single