You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# original source: http://stackoverflow.com/questions/2074606/doing-a-plyr-operation-on-every-row-of-a-data-frame-in-r
# create a simulated dataframe
x <- rnorm(10)
y <- rnorm(10)
df <- data.frame(x,y)
# array to dataframe apply, on df, for each row, apply transform() to create a variable called "max" whose values are the maximum value of x or y (whichever is higher).