Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. M <- matrix(c(rep(4:6,2),rep(1:3,2),seq(0.1,0.6,0.1)),6,3)
  2. > colnames(M)=c("s1","s2","p")
  3. > unique(M[,1:2])
  4. s1 s2
  5. [1,] 4 1
  6. [2,] 5 2
  7. [3,] 6 3
  8.  
  9. s1 s2 p1 p2
  10. [1,] 4 1 0.1 0.4
  11. [2,] 5 2 0.2 0.5
  12. [3,] 6 3 0.3 0.6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement