Challenge: Matrix Row Means
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 3. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Großartig!
Completion Rate verbessert auf 5.56
Challenge: Matrix Row Means
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 3. Kapitel 2
single