It's Autumn! Prices fall like leaves! - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Introduction to lists
Accessing list elements
Unnamed lists
Working with lists
24. Deleting multiple members at once
Summary

Instruction

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

Exercise

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.