x <- c(a=1, b=2)
rename(x,a="A",b="B")
str(rename(iris,
Sepal.Length="SepalLength",
Sepal.Width ="SepalWidth",
Petal.Length="PetalLenght",
Petal.Width ="PetalWidth"
))
Run the code above in your browser using DataLab