MCQs > Finance & Management > R > Which is an invalid way to return the mean of each variable in a numeric data frame?

R MCQs

Which is an invalid way to return the mean of each variable in a numeric data frame?

Answer

Correct Answer: for ( i in 1:nrow(df) ) print( mean( as.numeric( df[ i , ] ) ) )

Explanation:

Note: This Question is unanswered, help us to find answer for this one

R Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

R Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it