Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

mean of a row dataframe in r

# row wise mean using rowMeans()
df1$Avg_score = rowMeans(df1[,c(2,3,4)])
 
PREVIOUS NEXT
Tagged: #row #dataframe
ADD COMMENT
Topic
Name
4+3 =