Challenge: Matrix Row Means
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 2
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 5.56
Challenge: Matrix Row Means
Deslize para mostrar o menu
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 2
single