Challenge: Apply Function Selector
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 6
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 5.56
Challenge: Apply Function Selector
Pyyhkäise näyttääksesi valikon
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 6
single