summaryrefslogtreecommitdiffhomepage
path: root/r.html.markdown
diff options
context:
space:
mode:
authorMilo Gilad <milogaccnts@gmail.com>2017-08-25 10:18:31 -0400
committerMilo Gilad <milogaccnts@gmail.com>2017-08-25 10:18:31 -0400
commita6c3a64a4c897a1f7e7acfbfe6318866317770ad (patch)
tree28b0d35aaf2cdc3e968e182f1de4d5c5e596a970 /r.html.markdown
parent1abae4b25de43e05df3ba225986997bc72eb3f8a (diff)
parentbce21489d8d7e3a3f3d4ede2154dba082647296e (diff)
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'r.html.markdown')
-rw-r--r--r.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/r.html.markdown b/r.html.markdown
index 8539b10e..7a94ba05 100644
--- a/r.html.markdown
+++ b/r.html.markdown
@@ -192,7 +192,7 @@ class(-Inf) # "numeric"
2.0 * 2L # 4 # numeric times integer gives numeric
3L / 4 # 0.75 # integer over numeric gives numeric
3 %% 2 # 1 # the remainder of two numerics is another numeric
-# Illegal arithmetic yeilds you a "not-a-number":
+# Illegal arithmetic yields you a "not-a-number":
0 / 0 # NaN
class(NaN) # "numeric"
# You can do arithmetic on two vectors with length greater than 1,
@@ -662,7 +662,7 @@ require(plyr)
#########################
# "pets.csv" is a file on the internet
-# (but it could just as easily be be a file on your own computer)
+# (but it could just as easily be a file on your own computer)
pets <- read.csv("http://learnxinyminutes.com/docs/pets.csv")
pets
head(pets, 2) # first two rows