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

2 Getting to know R data types

This chapter covers

  • Types of data you will likely encounter
  • How R stores data using types
  • How to assign values to variables

In any programming language, data is stored by the computer in memory using binary values. A binary value has only two possible states, and we can think of these as TRUE and FALSE, or more commonly, as 1 and 0. In computer memory, these represent the presence or absence of an electrical charge, so they are also ON and OFF.

We may see a 42 on the screen, but that’s thanks to the computer translating what it has stored into what we expect to see. This can be extremely useful (better than seeing 00000000 00000000 00000000 00101010) but also somewhat dangerous, as we’ll discuss later.

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