diff options
author | Nami-Doc <vendethiel@hotmail.fr> | 2014-05-29 17:22:13 +0200 |
---|---|---|
committer | Nami-Doc <vendethiel@hotmail.fr> | 2014-05-29 17:22:13 +0200 |
commit | b3182e1cc8c400aa6169922ac8531b17a5a3349f (patch) | |
tree | 37854a69855b0910678be27a6f00a450e5dcadb2 /r.html.markdown | |
parent | 5a8004c614379563778d93976802f831d9d495c6 (diff) | |
parent | 101a75fcbc0b12b6ad7957d6fa721f8828635965 (diff) |
Merge pull request #625 from themiurgo/patch-1
Minor typo
Diffstat (limited to 'r.html.markdown')
-rw-r--r-- | r.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/r.html.markdown b/r.html.markdown index f6a62ae6..b59fc29c 100644 --- a/r.html.markdown +++ b/r.html.markdown @@ -347,7 +347,7 @@ c(6, 8, 7, 5, 3, 0, 9)[3] # 7 which(vec %% 2 == 0) # 1 3 # grab just the first or last few entries in the vector, head(vec, 1) # 8 -tail(vec, w) # 10 11 +tail(vec, 2) # 10 11 # or figure out if a certain value is in the vector any(vec == 10) # TRUE # If an index "goes over" you'll get NA: |