Answers for "del row matrix r"

R
0

del row matrix r

> cbind(c(1,2,3),c(4,5,6))
[,1] [,2]
[1,]    1    4
[2,]    2    5
[3,]    3    6
> rbind(c(1,2,3),c(4,5,6))
[,1] [,2] [,3]
[1,]    1    2    3
[2,]    4    5    6
Posted by: Guest on November-25-2020
0

del row matrix r

t1<- t1[-4:-6,-7:-9]
Posted by: Guest on November-27-2020
0

del row matrix r

> x <- matrix(1:9, nrow = 3, dimnames = list(c("X","Y","Z"), c("A","B","C")))
> x
A B C
X 1 4 7
Y 2 5 8
Z 3 6 9
Posted by: Guest on November-25-2020

Browse Popular Code Answers by Language