x=c(5,2,6)
y=c(4,8,1)
#construir la matriz con todas las formas 
#columnas
cbind(x,y)
#filas
rbind(x,y)
#calcular una matriz con 3 filas y 2 columnas 
matrix(c(x,y),nrow=3,ncol=2)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: