From the following code:
var<-c("a","a","b","b","c","d")
I want to have something like this:
c("a"="a", "b"="b", "c"="c", "d"="d")
then like this
c("Whole a"="="a", "Whole b"="b", "Whole c"="c", "Whole d=","d")
"Whole a" means that I want to write complete names of the levels (beginning with a capital letter and having space between two words).