👨💻 Director, Information Strategy @LurieChildrensFoundation
👨🎓 University of Nebraska alumni
Pinned 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.