mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Minor typo
This commit is contained in:
parent
5a8004c614
commit
101a75fcbc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user