Computing column of highest values from three columns
Hi all!
I'm trying to use drag-and-drop to compute a new column which includes the highest value from one of three columns. I haven't gotten far, so far I've tried the max(y) function, which takes just one column as an input and returns just one row including the highest value from the whole column. I've also tried the pmax() function in R but I've no experience in R, so that fell flat. Any help is appreciated!
Comments
Update! I got the desired result when using the rowMax() function in R, but only if all values are non-zero. Otherwise it still returns zero. Currently my column definition looks like this:
rowMax(column1, column2, column3)
This looks like something for our GitHub page! (for details see https://jasp-stats.org/2018/03/29/request-feature-report-bug-jasp/)