Answers for "median of a row dataframe in r"

0

median of a row dataframe in r

# Row wise median using apply() function
df1$row_median = apply(df1[,-1], 1, median)
Posted by: Guest on October-09-2020
0

median of a row dataframe in r

# Row wise median, 1: row, 2: column

df1$row_median = apply(df1[,-1], 1, median)
Posted by: Guest on October-09-2020

Browse Popular Code Answers by Language