attr(* label )= chr in r
# Creating a vector
vector <- c(1, 2, 3, 4, 5)
# Adding a label attribute to the vector
attr(vector, "label") <- "MyVector"
# Retrieving the label attribute of the vector
attr(vector, "label")
# Creating a vector
vector <- c(1, 2, 3, 4, 5)
# Adding a label attribute to the vector
attr(vector, "label") <- "MyVector"
# Retrieving the label attribute of the vector
attr(vector, "label")