Skip to Content
Modern R Programming Cookbook
book

Modern R Programming Cookbook

by Jaynal Abedin
October 2017
Beginner to intermediate
236 pages
7h 38m
English
Packt Publishing
Content preview from Modern R Programming Cookbook

Using the customized function within the dplyr verbs

It is almost obvious that there is a need to write customized functions to solve specialized problems. Though there are lots of built-in functions available in base R and also in the specialized libraries, you still might require some kind of output that is not available through the built-in functions. For example, you might want to create a new output dataset by taking only the regression coefficient from a series of linear regression models for the various unique combinations of other variables. In that case, you must write a customized function to achieve this task. The summarize() function from the dplyr library is a convenient way to calculate user-defined statistics. The problem with ...

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

R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9781787129054Supplemental Content