Generate a new table containing classified columns from continuous variables according to the grouping interval list provided by the user
Arguments
- data
a dataframe contain continuous type data column.
- breaks_list
data split points for grouping such as
c(18,30,40,50,60,70,Inf)
.- sp_column
the specified column name adapted to breaks_list,using a non-standard normal form.
- openr
default
openright= FALSE
,the data interval is in the form of left opening and right closing,such as[1,2)
.Whenopenright= TRUE
, the data interval is in the form of left closing and right opening.- digits
defines the number of decimal places for the return label.