Trying to transpose a vector in R and then name it.
I created a vector, v as follows:
v
v<-c(1,2,3,4)
But when I try
#Create data v<-c(1,2,3,4) #In addition to the answers presented prior to mine, you could do this. t(t(v)) [,1] [1,] 1 [2,] 2 [3,] 3 [4,] 4