To improve the likelihood of answers, add a reprex. See the FAQ that includes representative data.
reprex