Scraping a dwarf name

As silly as it is, I am not moving forward until I have a dwarf name of my own. I am not positive about getting this one directly from the web browser, either. We can do this using the R console alone. This section shows how. The first thing to do is find a website that will generate dwarf names for us. I picked the following one (

Figure 4.1: The Red Dragon Inn's dwarven name generator

The Red Dragon Inn will generate dwarf names, given four parameters:

  • Name, surname, or both
  • Total number of names to generate
  • Gender
  • Realistic or fantasy

Web pages usually ...

Get Hands-On Data Science with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.