Last active
October 14, 2015 05:55
-
-
Save t-student/e0b56cfa033387c56ec7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(plyr) | |
modspec <- function(df) { | |
summary(lm(sbp ~ age , data = df)) | |
} | |
dlply(df1, .(gender), modspec) | |
# Produces a model as specified by modspec for gender (male and female) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment