get_hist_bins: Helper function to bin a variable

Description Usage Arguments Value

View source: R/get_hist_bins.R

Description

Helper function to bin a variable

Usage

1
get_hist_bins(x, from, to, by, normalized, custom_bins = NULL)

Arguments

x

the variable to be binned

from

the minimum range

to

the maximum range

by

the break length

normalized

whether to normalize the counts to total counts.

custom_bins

A numeric vector for custom breaks to bin the histogram of fragment length. Over-rides bin_size.

Value

A numeric vector having counts within bins normalized by the sum of the variable


ctDNAtools documentation built on March 26, 2020, 7:39 p.m.