Element Names

Want to learn more? I recommend working through: R for Data Science, R Cookbook, and R Graphics Cookbook.

Each element in a vector can have a name assigned to it

# Create a vector with names for values
percent.sms <- c(high = 94, low = 23, 50)
# List names of a vector
names(percent.sms)
[1] "high" "low"  ""