Section 1. Chapter 14
single
Challenge: Indexes and Row Names
Swipe to show menu
Task
Swipe to start coding
Practice setting and using custom row names in data frames.
- Assign the values from
names_vectoras the row names of the data framedf. - Use the provided
selected_namesvector to subset the data frame by its row names. - Return the updated data frame with custom row names from
set_custom_row_names. - Return the subsetted data frame from
subset_by_row_names.
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 14
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat