Challenge: Matrix Row Means
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastico!
Completion tasso migliorato a 5.56
Challenge: Matrix Row Means
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 2
single