adv-r.hadley.nz Open in urlscan Pro
2406:da1c:6aa:c000::c8  Public Scan

Submitted URL: http://adv-r.hadley.nz/
Effective URL: https://adv-r.hadley.nz/
Submission: On October 24 via api from US — Scanned from NZ

Form analysis 1 forms found in the DOM

<form role="search">
  <span class="algolia-autocomplete" style="position: relative; display: inline-block; direction: ltr;"><input id="search" class="form-control aa-input" type="search" placeholder="Search" aria-label="Search" autocomplete="off" spellcheck="false"
      role="combobox" aria-autocomplete="list" aria-expanded="false" aria-owns="algolia-autocomplete-listbox-0" dir="auto" style="position: relative; vertical-align: top;">
    <pre aria-hidden="true"
      style="position: absolute; visibility: hidden; white-space: pre; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, &quot;Liberation Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; word-spacing: 0px; letter-spacing: 0px; text-indent: 0px; text-rendering: auto; text-transform: none;"><div class="copy"><button type="button" class="btn btn-outline-primary btn-copy" title="" aria-label="Copy to clipboard" data-toggle="popover" data-placement="top" data-trigger="hover" data-original-title="Copy to clipboard">Copy</button></div></pre>
    <span class="aa-dropdown-menu" role="listbox" id="algolia-autocomplete-listbox-0" style="position: absolute; top: 100%; left: 0px; z-index: 100; display: none; right: auto;">
      <div class="aa-dataset-content"></div>
    </span>
  </span>
</form>

Text Content

Skip to main content


ADVANCED R

Show table of contents
Copy




TABLE OF CONTENTS

 * Welcome
 * Preface
 * 1 Introduction
 * Foundations
 * Introduction
 * 2 Names and values
 * 3 Vectors
 * 4 Subsetting
 * 5 Control flow
 * 6 Functions
 * 7 Environments
 * 8 Conditions
 * Functional programming
 * Introduction
 * 9 Functionals
 * 10 Function factories
 * 11 Function operators
 * Object-oriented programming
 * Introduction
 * 12 Base types
 * 13 S3
 * 14 R6
 * 15 S4
 * 16 Trade-offs
 * Metaprogramming
 * Introduction
 * 17 Big picture
 * 18 Expressions
 * 19 Quasiquotation
 * 20 Evaluation
 * 21 Translating R code
 * Techniques
 * Introduction
 * 22 Debugging
 * 23 Measuring performance
 * 24 Improving performance
 * 25 Rewriting R code in C++
 * References

View book source


WELCOME

This is the website for 2nd edition of “Advanced R”, a book in Chapman & Hall’s
R Series. The book is designed primarily for R users who want to improve their
programming skills and understanding of the language. It should also be useful
for programmers coming to R from other languages, as help you to understand why
R works the way it does.

If you’re looking for the 1st edition, you can find it at
http://adv-r.had.co.nz/.


LICENSE



This work, as a whole, is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 4.0 International License.

The code contained in this book is simultaneously available under the MIT
license; this means that you are free to use it in your own packages, as long as
you cite the source.


OTHER BOOKS

You may also be interested in:

 * “Advanced R Solutions” by Malte Grosser and Henning Bumann, provides worked
   solutions to the exercises in this book.

 * “R for Data Science” which introduces you to R as a tool for doing data
   science, focussing on a consistent set of packages known as the tidyverse.

 * “R Packages” which teaches you how to make the most of R’s fantastic package
   system.

Preface


ON THIS PAGE

 * Welcome
 * License
 * Other books

 * View source
 * Edit this page

"Advanced R" was written by Hadley Wickham.

This book was built by the bookdown R package.