tbl_ntile_bin | R Documentation |
Create ntile bins
tbl_ntile_bin( data, variables = NULL, ntiles = NULL, remove_original_bin = F, remove_summary_features = T )
variables |
name of the bin variables |
ntiles |
number of ntiles |
remove_original_bin |
remove the orignial numeric feature |
remove_summary_features |
remove summaray fatures |
library(ggplot2) library(asbtools) tbl_ntile_bin(diamonds, variables = c("price", "carat"), ntiles = c(5,10)) tbl_ntile_bin(diamonds, variables = c("price"), ntiles = c(5,10)) tbl_ntile_bin(diamonds, variables = c("carat"), ntiles = c(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.