👨💻 Director, Information Strategy @LurieChildrensFoundation
👨🎓 University of Nebraska alumni
🦬
⚽ predictions, nonprofit #rstats
- Chicago
- https://austinwehrwein.com
- @awhstin
Highlights
Block or Report
Block or report awhstin
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned Loading
-
-
simple function to return the column...
simple function to return the column name with the max (or min) value from a comparison of columns. 1data(mtcars)
23col_compare<-function(df,cols,fun=which.max){
4x<-data.frame(df)
5temp<-x[,c(cols)]
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.