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

5 Combining data values

This chapter covers

  • Creating structures containing grouped data: vectors, lists, data, frames, and more
  • How these interact with missing data
  • Inspecting and querying these new structures

So far we’ve only dealt with single-valued variables, but it’s highly unlikely that your data looks so simple. You need a way to combine values into groups of data that together represent some larger concept. There are many ways to do this in R, and the way you store collections of data can impact how you interact with it later, so let’s see some of the different ways to combine data.

5.1 Simple collections

The simplest way to group together values is with the function c(). Feel free to refer to this function however you like, but ...

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