Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

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

colMeans( df )
for ( i in 1:nrow(df) ) print( mean( as.numeric( df[ i , ] ) ) )
apply( df, 2, mean )
sapply( 1:ncol(df), function( col ) mean( df[ , col ] ) )
for ( i in 1:ncol(df) ) print( mean( df[ , i ] ) )
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon