parent
37521f487a
commit
e0d6b7036e
|
@ -223,7 +223,7 @@ If you apply it to a whole document it'll give you the first match:
|
|||
html |> html_element("p")
|
||||
```
|
||||
|
||||
There's an important difference between `html_elements()` and `html_elements()` when you use a selector that doesn't match any elements.
|
||||
There's an important difference between `html_element()` and `html_elements()` when you use a selector that doesn't match any elements.
|
||||
`html_elements()` returns a vector of length 0, where `html_element()` returns a missing value.
|
||||
This will be important shortly.
|
||||
|
||||
|
@ -262,7 +262,7 @@ To extract the name of each character, we use `html_element()`, because when app
|
|||
characters |> html_element("b")
|
||||
```
|
||||
|
||||
The distinction between `html_element()` and `html_element()` isn't important for name, but it is important for weight.
|
||||
The distinction between `html_element()` and `html_elements()` isn't important for name, but it is important for weight.
|
||||
We want to try and get the weight for each character
|
||||
|
||||
```{r}
|
||||
|
|
Loading…
Reference in New Issue