Challenge: Build a Data Frame
Task
Swipe to start coding
Build a function that creates a data frame representing a class roster using three vectors: student names, ages, and test scores. The function should display the structure and summary of the resulting data frame.
- Combine the
names,ages, andscoresvectors into a data frame with columns named "Name", "Age", and "Score". - Display the structure of the data frame.
- Display the summary of the data frame.
- Return the data frame.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Build a Data Frame
Swipe to show menu
Task
Swipe to start coding
Build a function that creates a data frame representing a class roster using three vectors: student names, ages, and test scores. The function should display the structure and summary of the resulting data frame.
- Combine the
names,ages, andscoresvectors into a data frame with columns named "Name", "Age", and "Score". - Display the structure of the data frame.
- Display the summary of the data frame.
- Return the data frame.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 2
single