Rainbow Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Introduction to lists
Accessing list elements
Unnamed lists
Working with lists
Summary

Instruction

Well done! You can easily change the names of a list's members by modifying the vector that the names() function returns. How does this work?

You can assign values to these elements using the assignment operator, <-, just as you normally do. In fact, you can change multiple names at once using the c() function and an appropriate range of indexes.

names(candidate) <- c("Jack Pearson", "Jonathan Smile", "Emily Beckett")

Exercise

Modify the member names of the job_role list. Change the element names job_position, years_of_experience, and skills to position, experience_in_years, and technical_skills, respectively.