datos=c(6,3,7,4,5,3)
A=matrix(data=1:6,nrow=3,ncol=2,byrow=FALSE)
print(A*3)
##      [,1] [,2]
## [1,]    3   12
## [2,]    6   15
## [3,]    9   18
matA<-matrix(data=c("a","b","c","d","f"), nrow = 3, ncol = 2,byrow=TRUE)
## Warning in matrix(data = c("a", "b", "c", "d", "f"), nrow = 3, ncol = 2, : data
## length [5] is not a sub-multiple or multiple of the number of rows [3]
rownames(matA)<-c("fila1","fila2","fila3")
colnames(matA)<-c("col1","col2")
print(matA)
##       col1 col2
## fila1 "a"  "b" 
## fila2 "c"  "d" 
## fila3 "f"  "a"