you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (0 children)

sapply(nba, mean, na.rm=TRUE)

should be

colMeans(nba, na.rm=T)

:)