R style tip: prefer functions that return data frames

Win-Vector Blog 2014-09-04

Summary:

While following up on Nina Zumel’s excellent Trimming the Fat from glm() Models in R I got to thinking about code style in R. And I realized: you can make your code much prettier by designing more of your functions to return data.frames. That may seem needlessly heavy-weight, but it has a lot of down-stream […]

Link:

http://www.win-vector.com/blog/2014/06/r-style-tip-prefer-functions-that-return-data-frames/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

practical data science pragmatic data science programming statistics tutorials plyr r

Authors:

John Mount

Date tagged:

09/04/2014, 23:20

Date published:

06/06/2014, 14:27