Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction to lists
Accessing list elements
Unnamed lists
Working with lists
24. Deleting multiple members at once


You can also remove more than one member from a list at once using the list-slicing operator, [...], and a range of indexes.

candidate[c(1, 2)] <- NULL


Try removing the first and second elements of the job_role list. Then display the contents of job_role.

Stuck? Here's a hint!

Assign NULL to job_role[c(1, 2)] and display the contents of job_role.