Sektion 1. Kapitel 14
single
Challenge: Indexes and Row Names
Stryg for at vise menuen
Opgave
Stryg for at begynde at kode
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 14
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat