I have some R code that looks as follows:
rawList <- df %>% select(colIndex) %>% top_n(rows)
Selecting by ReadTime
That message appears when you don't explicitly pass a
wt parameter to
top_n to tell it which column to use select the top values for.
dd <- data.frame(x = c(10, 4, 1, 6, 3, 1, 1)) dd %>% top_n(2) # Selecting by x dd %>% top_n(2, x) # use column name