Start reading R Cookbook (O'Reilly Cookbooks) on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.

Deliver to your Kindle or other device

 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Read books on your computer or other mobile devices with our FREE Kindle Reading Apps.
R Cookbook (O'Reilly Cookbooks)
 
 

R Cookbook (O'Reilly Cookbooks) [Kindle Edition]

Paul Teetor
4.3 out of 5 stars  See all reviews (14 customer reviews)

Digital List Price: $31.99 What's this?
Print List Price: $39.99
Kindle Price: $17.27 includes free wireless delivery via Amazon Whispernet
You Save: $22.72 (57%)

Formats

Amazon Price New from Used from
Kindle Edition $17.27  
Paperback $31.49  
Unknown Binding --  

Book Description

March 3, 2011

With more than 200 practical recipes, this book helps you perform data analysis with R quickly and efficiently. The R language provides everything you need to do statistical work, but its structure can be difficult to master. This collection of concise, task-oriented recipes makes you productive with R immediately, with solutions ranging from basic tasks to input and output, general statistics, graphics, and linear regression.

Each recipe addresses a specific problem, with a discussion that explains the solution and offers insight into how it works. If you’re a beginner, R Cookbook will help get you started. If you’re an experienced data programmer, it will jog your memory and expand your horizons. You’ll get the job done faster and learn more about R in the process.

  • Create vectors, handle variables, and perform other basic functions
  • Input and output data
  • Tackle data structures such as matrices, lists, factors, and data frames
  • Work with probability, probability distributions, and random variables
  • Calculate statistics and confidence intervals, and perform statistical tests
  • Create a variety of graphic displays
  • Build statistical models with linear regressions and analysis of variance (ANOVA)
  • Explore advanced statistical techniques, such as finding clusters in your data

"Wonderfully readable, R Cookbook serves not only as a solutions manual of sorts, but as a truly enjoyable way to explore the R language—one practical example at a time."—Jeffrey Ryan, software consultant and R package author


Customers Who Bought This Item Also Bought


Editorial Reviews

About the Author

Paul Teetor is a quantitative developer with Masters degrees in statistics and computer science. He specializes in analytics and software engineering for investment management, securities trading, and risk management. He works with hedge funds, market makers, and portfolio managers in the greater Chicago area.


Product Details


Customer Reviews

Most Helpful Customer Reviews
49 of 51 people found the following review helpful
Format:Paperback|Amazon Verified Purchase
I'd give this book ten stars if I could. I bought one copy for the office and one for my house. This guy has the ability to write simply and with the mind set of people who are busy and want to get results right away. Of course we'd all love to be leisurely scholars and plow through theory and practice but most of us just need to get things done. A good example is the way he treats ARIMA. He warns you about using auto.arima but does not hide it from you because it is "dangerous." The book is full of tips, well organized and is oriented towards beginners, though it gets into depth. So many of the R books I've read absolutely pound you with up front details, some of which relate to obscure concerns, rather than starting with a task. For example, on page 199 he writes "Problem -- you want to count the relative frequency of certain observations in your sample" Next is "Solution" -- and he explains just the minimum needed to do that job. Some of the tips are just simple time savers, such as the function head(dataframe) to show a few of the dataframe rows at the start and tail(dataframe) to show a few at the end. Finally .... I don't know this writer personally, but I hope he keeps on writing because it is a craft he has thoroughly absorbed somewhere along the line. Bill Yarberry, Houston, TX
Comment | 
Was this review helpful to you?
22 of 23 people found the following review helpful
Format:Paperback
The R Cookbook should be on your bookshelf if you work with R.

The book is as self-described, a collection of tasks and how to accomplish those tasks in R (recipes). This is not a tutorial on the language, but is definitely recommended for novices. One of the most frustrating aspects of R for the beginner is to know what manipulations you require for a dataset, but to be clueless as to how to perform those steps in R; this book can help close that gap.

For intermediate users, it can serve as a reference. I'll often use this to jog my memory as to how a particular technique is applied, e.g., run a function on each row of a dataframe. Since the book has been available on the O'Reilly Safari system for several months, it's become one of my most-used options for R info.

Technically the book appears to be accurate, with the recipes I've used functioning well. Caveat, I have not tested any of the higher-end statistical recipes, as they aren't required in my work.

In summary, this should be one of the first books purchased when building an R library.

Disclaimer, I received access from O'Reilly Publishing to an electronic copy of this book for purposes of review.
Comment | 
Was this review helpful to you?
16 of 16 people found the following review helpful
Format:Paperback|Amazon Verified Purchase
I'm a long time Matlab user, but have been using R for a couple months now. Still on the fence on their relative merits (they're different, let me say), but it's been interesting. I had the help of friends, but this book got me going. I bought probably 10 books, and this is far and away the best place to start. Nice combination of keeping it simple and still giving you a sense of the logic of the software. What it doesn't have is details about specific things (graphics, for example), but it gets you close enough that you can usually figure the rest out for yourself. Great book, well written, good coverage of topics -- at least for my use (analysis of international macroeconomic data).
Was this review helpful to you?
Most Recent Customer Reviews
Good, but not necessary.
R Cookbook is a good book to have. It covers the bases well, and is organized in a logical method. The "Cookbook" formula works, for the most part. Read more
Published 14 days ago by Z. Sheffler
these days a lot of clueless people write books on r
page 355: author does not recommend using ts class for storing time series and instead goes off into discussing zoo and xts classes. Read more
Published 15 days ago by Sam S
Very useful, extremely well written
Despite what has been said by some other reviewers I would not use this book as your only introduction, because it is not designed to be that, and I think that The Art of R... Read more
Published 1 month ago by M. Henri De Feraudy
Ok, but not great
The book does provide some examples of how to do various things in R, but if what you want to do is more complex or not included in the examples provided you're out of luck. Read more
Published 3 months ago by SO
Great book, concise and well written
I have many books on programming in various languages. This one is probably in my top 3! It's so clear and breaks everything you want to do into 'recipes', aka snippets of code... Read more
Published 4 months ago by Shlomo Yisrael
Concise, accurate, useful summary of R procedures
R is a hard programming language to learn, in part because of its unconventional syntax and terminology relative to more mainstream languages, and also because it comes with... Read more
Published 8 months ago by Nathan Goodman
Great for beginners
You will be disappointed if you are a competent R programmer looking for "hacks". Note that the only negative review so far mentions its author's four-year experience with R. Read more
Published 9 months ago by Dimitri Shvorob
Mostly ideas you could have gottten from the man pages
I'm not a statistician, but I've used R for analyzing data for about four years now. I had hoped that this book would be a real "cook book" that would unlock some secrets that... Read more
Published 9 months ago by bill luecke
Simple, yet powerful
Simply put, one of the best R starters around. What you get here are recipes for most common problems you will face while working with R. Read more
Published 10 months ago by mko
By far the best introduction to R on the market
I haven't seen a better introduction to R than Paul Teetor's R Cookbook,
published by O'Reilly. Read more
Published 10 months ago by sjenkins278
Search Customer Reviews
Only search this product's reviews

More About the Author

Paul Teetor is a quantitative developer with Masters degrees in statistics and computer science. He specializes in analytics and software engineering for investment management, securities trading, and risk management. He works with hedge funds, market makers, and portfolio managers in the greater Chicago area, where he lives with his wife and sons. In his mind, he is a fabulous musician and one of the world's great futures traders.

What Other Items Do Customers Buy After Viewing This Item?


Popular Highlights

 (What's this?)
&quote;
R, every object has a mode, which indicates how it is stored in memory: &quote;
Highlighted by 8 Kindle users
&quote;
lapply always returns the results in list, whereas sapply returns the results in a vector if that is possible: &quote;
Highlighted by 5 Kindle users
&quote;
A data frame is a tabular (rectangular) data structure, which means that it has rows and columns. It is not implemented by a matrix, however. Rather, a data frame is a list: &quote;
Highlighted by 5 Kindle users

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
 

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide

Look for Similar Items by Category