df1
vec1 vec2 vec3
0 10 5
10 20 13
20 30 28
I would like to create a new column as shown below that contains the median value of a list of vectors in the data frame at its row index.
df1
vec1 vec2 vec3 median
0 10 5 5
10 12 13 12
20 30 28 28