r - dplyr top_n() - Suppress status message? -
i have r code looks follows:
rawlist <- df %>% select(colindex) %>% top_n(rows)
this executes expect, when runs, output looks this:
selecting readtime
i added top_n() code , never saw message before adding function. i'm starting see it. assume it's comming top_n() function, , cannot find way suppress message.
that message appears when don't explicitly pass wt
parameter top_n
tell column use select top values for.
compare
dd <- data.frame(x = c(10, 4, 1, 6, 3, 1, 1)) dd %>% top_n(2) # selecting x dd %>% top_n(2, x) # use column name
Comments
Post a Comment