vector<-1:8
#
vector
#
#...vector has no dimension attributes
#
as.column(vector)
#
#...gives output dimension of (8,1)
#
A<-matrix(c(6,2,2,10,6,17),3,2)
#
#
as.column(A)
#
#the function has no effect on F
#
F<-t(A)
F
#now has dimension (2,3)...
#
as.column(A)
#
#the output is made to have more rows than columns
Run the code above in your browser using DataLab