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”)
R function: which.max which.max returns the position of the element with the maximal value in a vector. n <- c (31, 47, 18, 9, 25, 19, 62, 32)pos_max <- […]