Challenge: Apply Function Selector
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Apply Function Selector
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 6
single