Answers for "names of vector values r"

R
1

name elements in vector r

x = c(1, 3, 5)
names(x) = c("a", "b", "c")
Posted by: Guest on September-21-2021

Browse Popular Code Answers by Language