Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Write Your First Function | Writing Functions in R
Functions and Functional Programming in R

bookChallenge: Write Your First Function

Taak

Swipe to start coding

Create a function that introduces a person using their name and age.

  • The function introduce_person must take two arguments: name and age.
  • The function must return a string in the format: "Hello, my name is <name> and I am <age> years old.".

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 2
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Write Your First Function

Veeg om het menu te tonen

Taak

Swipe to start coding

Create a function that introduces a person using their name and age.

  • The function introduce_person must take two arguments: name and age.
  • The function must return a string in the format: "Hello, my name is <name> and I am <age> years old.".

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 2
single

single

some-alt