x=c(3,4,5,1,6) y=3:7 y #crear una matriz con x en la primera columna y con y en la segunda columna xy=cbind(x,y) xy #sumar la matriz xy con la matriz xy xy + xy #multiplicar xy *xy xy*xy #suma por filas rowSums(xy) #suma por columnas colSums(xy)
To embed this project on your website, copy the following code and paste it into your website's HTML: