Answer to Question #150493 in Statistics and Probability for Humayun Usman

Question #150493
: Write a script in R to remove the read counts with a row sum of 5 from the

following matrix. (12)

WT KI
0 1
50 20
30 30
3 6
3 8
1
Expert's answer
2020-12-17T14:33:13-0500

a<-matrix(c(0,1,50,20,30,30,3,6,3,8), ncol=2,byrow=T)

colnames(a) <-c("WT", "KI")

a

b<-matrix (a[rowSums(a)! =5] ,ncol=2, byrow=F)

b


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS