Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > s=scan()
- 1: 0
- 2: 1
- 3: 2
- 4: 3
- 5: 0
- 6:
- Read 5 items
- > w=which;max(s[c(w(s==0)+1,w(s==0)-1)])
- [1] NA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement