Negative indexing for exclusion
📖 Scenario: You have a list of fruits, but you want to create a new list that excludes some specific fruits by their positions.
🎯 Goal: Learn how to use negative indexing in R to exclude elements from a vector.
📋 What You'll Learn
Create a vector with exact fruit names
Create a vector with exact positions to exclude
Use negative indexing to exclude those positions
Print the resulting vector
💡 Why This Matters
🌍 Real World
Negative indexing is useful when you want to remove unwanted items from a list, like filtering out certain products or data points.
💼 Career
Data analysts and programmers often need to exclude specific data entries quickly and efficiently using indexing techniques.
Progress0 / 4 steps