Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Apply Function Selector | Apply Family Functions in R
Control Flow in R

bookChallenge: Apply Function Selector

Aufgabe

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 lst and calculate its sum.
  • Return a numeric vector containing the sum of each input vector.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 6
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Apply Function Selector

Swipe um das Menü anzuzeigen

Aufgabe

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 lst and calculate its sum.
  • Return a numeric vector containing the sum of each input vector.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 6
single

single

some-alt