Answers for "Calculate the mean of every 6 rows in data frame in r"

R
0

mean of a row dataframe in r

# row wise mean using rowMeans()
df1$Avg_score = rowMeans(df1[,c(2,3,4)])
Posted by: Guest on October-09-2020

Code answers related to "Calculate the mean of every 6 rows in data frame in r"

Browse Popular Code Answers by Language