Answers for "how to apply a function to a dataframe in r"

1

how to apply a function to a dataframe in r

x = apply(df, MARGIN = 2, FUN = mean)
Posted by: Guest on October-23-2020

Code answers related to "how to apply a function to a dataframe in r"

Browse Popular Code Answers by Language