Median DataFrame baris di R
# Row wise median using apply() function
df1$row_median = apply(df1[,-1], 1, median)
Rocku0
# Row wise median using apply() function
df1$row_median = apply(df1[,-1], 1, median)
# Row wise median, 1: row, 2: column
df1$row_median = apply(df1[,-1], 1, median)