Challenge: Apply Function Selector
Tâche
Swipe to start coding
Given a list of numeric vectors, write a function that returns the sum of each vector as a simple numeric vector using the appropriate apply family function.
- Use the correct apply family function to iterate over each element in
lstand calculate its sum. - Return a numeric vector containing the sum of each input vector.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 6
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 5.56
Challenge: Apply Function Selector
Glissez pour afficher le menu
Tâche
Swipe to start coding
Given a list of numeric vectors, write a function that returns the sum of each vector as a simple numeric vector using the appropriate apply family function.
- Use the correct apply family function to iterate over each element in
lstand calculate its sum. - Return a numeric vector containing the sum of each input vector.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 6
single