SHARE
TWEET

Untitled

a guest Sep 22nd, 2016 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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