names() function in R

names() function in R

names() function is used to give name to vector members.

Syntax

names(vector_variable) = c(“names”)

Example

names(employee role) = c(“EmpNo”,”EmpRole”)

Leave a Reply

Discover more from Abhyas

Subscribe now to keep reading and get access to the full archive.

Continue reading