Skip to Main Content
Beyond Spreadsheets with R
book

Beyond Spreadsheets with R

by Jonathan Carroll
January 2019
Beginner to intermediate content levelBeginner to intermediate
352 pages
9h 8m
English
Manning Publications
Content preview from Beyond Spreadsheets with R

6 Selecting data values

This chapter covers

  • Manipulating strings
  • Selecting groups of values from different structures
  • Conditionally selecting values
  • Replacing certain values
  • Manipulating data.frames in a better way: dplyr

Now that you’ve learned how to group values together into larger structures, it’s going to be useful to access smaller components of those from time to time, be it a column from a data.frame, a row from a matrix, or part of a string. Extracting data from larger structures is both one of the most common and most dangerous (because of various R quirks) operations that you’ll perform with the language. Knowing what the dangers are and to expect them rather than be surprised by them is a defensive strategy, and there’s value ...

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

Graphical Data Analysis with R

Graphical Data Analysis with R

Antony Unwin
Regression Analysis with R

Regression Analysis with R

Giuseppe Ciaburro, Pierre Paquay, Manoj Kumar, Shaikh Salamatullah
Advanced Machine Learning with R

Advanced Machine Learning with R

Cory Lesmeister, Dr. Sunil Kumar Chinnamgari

Publisher Resources

ISBN: 9781617294594Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link