You are viewing a single comment's thread. Return to all comments →
Solution in R:
Note that array indices begin at 1 in R.
migratoryBirds <- function(arr) { t <- table(arr) mode <- names(t[t == max(t)]) return(mode[1]) }
Seems like cookies are disabled on this browser, please enable them to open this website
Migratory Birds
You are viewing a single comment's thread. Return to all comments →
Solution in R:
Note that array indices begin at 1 in R.