Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. > s=scan()
  2. 1: 0
  3. 2: 1
  4. 3: 2
  5. 4: 3
  6. 5: 0
  7. 6:
  8. Read 5 items
  9.  
  10. > w=which;max(s[c(w(s==0)+1,w(s==0)-1)])
  11. [1] NA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement