Skip to content

Commit 49f70b3

Browse files
tc wordsmith head notebox
1 parent 22ade9b commit 49f70b3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

reading.Rmd

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,10 +1102,13 @@ head(population_nodes)
11021102
print_html_nodes(head(population_nodes))
11031103
```
11041104
1105-
> **Note:** `head` is a function that is useful for viewing the first `n` parts
1106-
> of an R object, where the default value for `n` is 6.
1107-
> It is useful to know, as not all R objects have a nice and short
1108-
> print method like tibbles (which print only the first 10 rows).
1105+
> **Note:** `head` is a function that is often useful for viewing only a short
1106+
> summary of an R object, rather than the whole thing (which may be quite a lot
1107+
> to look at). For example, here `head` shows us only the first 6 items in the
1108+
> `population_nodes` object. Note that some R objects by default print only a
1109+
> small summary. For example, `tibble` data frames only show you the first 10 rows.
1110+
> But not *all* R objects do this, and that's where the `head` function helps
1111+
> summarize things for you.
11091112
11101113
Next we extract the meaningful data—in other words, we get rid of the HTML code syntax and tags—from
11111114
the nodes using the `html_text`

0 commit comments

Comments
 (0)