Challenge: Build a Data Frame
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 5.56
Challenge: Build a Data Frame
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single