Using rollapply to find grooves in a crosscut
get_grooves_rollapply(bullet, smoothfactor = 15, adjust = 10, groove_cutoff = 400, mean_left = NULL, mean_right = NULL, mean_window = 100, second_smooth = T, which_fun = mean)
bullet | data frame with topological data in x-y-z format |
---|---|
smoothfactor | The smoothing window to use |
adjust | positive number to adjust the grooves |
groove_cutoff | The index at which a groove cannot exist past |
mean_left | If provided, the location of the average left groove |
mean_right | If provided, the location of the average right groove |
mean_window | The window around the means to use |
second_smooth | Whether or not to smooth a second time |
which_fun | Which function to use in the rollapply statement |