Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Create and Access Lists | R Lists and Nested Data
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Working with Data Structures in R

bookChallenge: Create and Access Lists

Tâche

Swipe to start coding

Create a function that builds a list representing a student's profile and allows access to specific elements.

  • The function must return a list with four elements: name, age, grades, and passed.
  • The grades element must be a numeric vector.
  • The passed element must be a logical value.
  • The main execution must access and print the grades and passed elements from the list.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Create and Access Lists

Glissez pour afficher le menu

Tâche

Swipe to start coding

Create a function that builds a list representing a student's profile and allows access to specific elements.

  • The function must return a list with four elements: name, age, grades, and passed.
  • The grades element must be a numeric vector.
  • The passed element must be a logical value.
  • The main execution must access and print the grades and passed elements from the list.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

some-alt