daily pastebin goal
49%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. > p = matrix(c(         1,rep(0,7),
  2. +              rep(0,2),1,rep(0,5),
  3. +              rep(0,4),1,rep(0,3),
  4. +              rep(0,6),1,rep(0,1),
  5. +              rep(0,1),1,rep(0,6),
  6. +              rep(0,3),1,rep(0,4),
  7. +              rep(0,5),1,rep(0,2),
  8. +              rep(0,7),1          ),8,8,1)
  9. > (v = c(1:8))
  10. [1] 1 2 3 4 5 6 7 8
  11. > as.vector(t(p %*% v))
  12. [1] 1 3 5 7 2 4 6 8
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top