Skip to Content
Modern R Programming Cookbook
book

Modern R Programming Cookbook

by Jaynal Abedin
October 2017
Beginner to intermediate
236 pages
7h 38m
English
Packt Publishing
Content preview from Modern R Programming Cookbook

How to do it…

The steps to implement this recipe are as follows:

  1. Load the rvest library. This is a specialized library for reading and processing HTML web pages.
  2. Create an object containing the URL as a character string.
  3. Call the read_html() function and pass the object containing the URL.

The code for the preceding steps is as follows:

        library(rvest)        sourceURL <-        "https://en.wikipedia.org/wiki/Programming_with_Big_Data_in_R"        htmlTextData <- read_html(sourceURL)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9781787129054Supplemental Content