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

3 Making new data values

This chapter covers

  • Performing operations between two or more data values
  • Comparing values of the same or different type
  • How R changes the data type as it needs to

You have your data values, but there’s a good chance you’ll want to do something with them, like add or multiply. It’s time to go back to basics and see how R deals with combining data. Thankfully, R is a readable language for things like this, and with any luck you’ll be able to code up what you’re trying to do with the operators you expect. Follow along with this chapter in the Console and try some values yourself to see if you get the results you expect.

3.1 Basic mathematics

The simplest thing you might want to do to two values is add them. No surprises ...

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