R Program to Combine the three vectors: In this program, you will learn about Combine the three vectors to become a 3×3 matrix where each column represents a vector. let’s start
R Program to Combine the Three Vectors
Source Code
a<-c(4,5,6)
b<-c(7,8,9)
c<-c(10,11,12)
m<-cbind(a,b,c)
print("matrix result:")
print(m)
Output
R Program to Combine the three vectors