`create_range()` converts a factor column "bin" into a character vector, extracts numeric range values from the character vector, and combines them with additional columns "bin_size" and "binned_time" to return a numeric vector representing the range information.
create_range(
x,
bin_size_colname = "scmp_bin_size",
bin_col = "scmp_bin",
verbose = TRUE
)
A data frame that should contain the following columns:
A factor column representing the bin intervals in the format "[x, y]".
A numeric column representing the bin size.
A numeric column representing the binned time.
The name of the column containing the bin size.
The name of the column containing the bin intervals.
Logical; if TRUE, prints detailed output.
A numeric vector containing four elements:
The lower bound of the bin interval.
The upper bound of the bin interval.
The bin size.
The binned time.