mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Fixed output. (#4157)
Fixed output provided in comments beside the command.
This commit is contained in:
parent
da4f1ff4c8
commit
5828962380
@ -377,8 +377,8 @@ vec[6] # NA
|
|||||||
# You can find the length of your vector with length()
|
# You can find the length of your vector with length()
|
||||||
length(vec) # 4
|
length(vec) # 4
|
||||||
# You can perform operations on entire vectors or subsets of vectors
|
# You can perform operations on entire vectors or subsets of vectors
|
||||||
vec * 4 # 16 20 24 28
|
vec * 4 # 32 36 40 44
|
||||||
vec[2:3] * 5 # 25 30
|
vec[2:3] * 5 # 45 50
|
||||||
any(vec[2:3] == 8) # FALSE
|
any(vec[2:3] == 8) # FALSE
|
||||||
# and R has many built-in functions to summarize vectors
|
# and R has many built-in functions to summarize vectors
|
||||||
mean(vec) # 9.5
|
mean(vec) # 9.5
|
||||||
|
Loading…
Reference in New Issue
Block a user