Bin a variable along a range

bin_along_range(x, size = NA, trim = 0.01)

Arguments

x

variable to create binned sequence along

size

size of bin

trim

percent of obs to trim from both ends of variable