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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -