Skip to content

Commit 4e49b01

Browse files
index bugfixes
1 parent 9e3a0dd commit 4e49b01

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

source/clustering.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ improves it by making adjustments to the assignment of data
295295
to clusters until it cannot improve any further. But how do we measure
296296
the "quality" of a clustering, and what does it mean to improve it?
297297
In K-means clustering, we measure the quality of a cluster
298-
by its\index{within-cluster sum-of-squared-distances|see{WSSD}}\index{WSSD} *within-cluster sum-of-squared-distances* (WSSD).
298+
by its\index{within-cluster sum of squared distances|see{WSSD}}\index{WSSD} *within-cluster sum-of-squared-distances* (WSSD).
299299
Computing this involves two steps.
300300
First, we find the cluster centers by computing the mean of each variable
301301
over data points in the cluster. For example, suppose we have a

source/intro.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ filtering the rows. A logical statement evaluates to either `TRUE` or `FALSE`;
388388
`filter` keeps only those rows for which the logical statement evaluates to `TRUE`.
389389
For example, in our analysis, we are interested in keeping only languages in the
390390
"Aboriginal languages" higher-level category. We can use
391-
the *equivalency operator* `==` \index{logical statement!equivalency operator} to compare the values
391+
the *equivalency operator* `==` \index{logical operator!equivalency} to compare the values
392392
of the `category` column with the value `"Aboriginal languages"`; you will learn about
393393
many other kinds of logical statements in Chapter \@ref(wrangling). Similar to
394394
when we loaded the data file and put quotes around the file name, here we need

source/reading.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ into R, but before we can talk about *how* we read the data into R with these
7878
functions, we first need to talk about *where* the data lives. When you load a
7979
data set into R, you first need to tell R where those files live. The file
8080
could live on your computer (*local*)
81-
\index{location|see{path}} \index{path!local, remote, relative, absolute}
81+
\index{location|see{path}} \index{path!local}\index{path!remote}\index{path!relative}\index{path!absolute}
8282
or somewhere on the internet (*remote*).
8383

8484
The place where the file lives on your computer is referred to as its "path". You can

source/regression1.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ Note that for the remainder of the chapter
303303
we'll be working with the entire Sacramento data set,
304304
as opposed to the smaller sample of 30 points
305305
that we used earlier in the chapter (Figure \@ref(fig:07-small-eda-regr)).
306-
\index{training data}
307-
\index{test data}
306+
\index{training set}
307+
\index{test set}
308308

309309
```{r 07-sacramento-seed-before-train-test-split, echo = FALSE, message = FALSE, warning = FALSE}
310310
# hidden seed -- make sure this is the same as what appears in reg2 right before train/test split

source/version-control.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Once you reach a point that you want Git to keep a record
204204
of the current version of your work, you need to **commit** \index{git!commit}
205205
(i.e., snapshot) your changes. A prerequisite to this is telling Git which
206206
files should be included in that snapshot. We call this step **adding** the
207-
files to the **staging area**. \index{git!add, staging area}\index{staging area|see{git}}
207+
files to the **staging area**. \index{git!add}\index{git!staging area}\index{staging area|see{git}}
208208
Note that the staging area is not a real physical location on your computer;
209209
it is instead a conceptual placeholder for these files until they are committed.
210210
The benefit of the Git version control system using a staging area is that you

source/viz.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ visual noise to remove. But there are a few things we must do to improve
356356
clarity, such as adding informative axis labels and making the font a more
357357
readable size. To add axis labels, we use the `xlab` and `ylab` functions. To
358358
change the font size, we use the `theme` function with the `text` argument:
359-
\index{ggplot!xlab,ylab}
359+
\index{ggplot!xlab}\index{ggplot!ylab}
360360
\index{ggplot!theme}
361361

362362
```{r 03-data-co2-line-2, warning=FALSE, message=FALSE, fig.height = 3.1, fig.width = 4.5, fig.align = "center", fig.cap = "Line plot of atmospheric concentration of CO$_{2}$ over time with clearer axes and labels."}
@@ -675,11 +675,11 @@ to assess a few key characteristics of the data:
675675

676676
- **Direction:** if the y variable tends to increase when the x variable increases, then y has a **positive** relationship with x. If
677677
y tends to decrease when x increases, then y has a **negative** relationship with x. If y does not meaningfully increase or decrease
678-
as x increases, then y has **little or no** relationship with x. \index{relationship!positive, negative, none}
678+
as x increases, then y has **little or no** relationship with x. \index{relationship!positive}\index{relationship!negative}\index{relationship!none}
679679
- **Strength:** if the y variable *reliably* increases, decreases, or stays flat as x increases,
680-
then the relationship is **strong**. Otherwise, the relationship is **weak**. Intuitively, \index{relationship!strong, weak}
680+
then the relationship is **strong**. Otherwise, the relationship is **weak**. Intuitively, \index{relationship!strong}\index{relationship!weak}
681681
the relationship is strong when the scatter points are close together and look more like a "line" or "curve" than a "cloud."
682-
- **Shape:** if you can draw a straight line roughly through the data points, the relationship is **linear**. Otherwise, it is **nonlinear**. \index{relationship!linear, nonlinear}
682+
- **Shape:** if you can draw a straight line roughly through the data points, the relationship is **linear**. Otherwise, it is **nonlinear**. \index{relationship!linear}\index{relationship!nonlinear}
683683

684684
In Figure \@ref(fig:03-mother-tongue-vs-most-at-home-scale-props), we see that
685685
as the percentage of people who have a language as their mother tongue increases,

0 commit comments

Comments
 (0)