Code
res1 <- top_n(mtcars, n() * 0.5)
Message
Selecting by carb
Code
res2 <- top_n(mtcars, 16)
Message
Selecting by carb
Code
res1 <- top_n(mtcars, n() * 0.5)
Message
Selecting by carb
Code
res2 <- top_frac(mtcars, 0.5)
Message
Selecting by carb
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.