R names() Function
The names() function in R gets or sets the names of objects such as vectors, lists, or data frames. If you are using it to fetch the name, it will return a character vector containing the names assigned to its elements or columns. Syntax names(obj) # To get names names(obj) <- value # To set names Parameters Name Value … Read more