Hi @Namin! In order to help you a bit more, we're going to need to see what your data looks like. We have an FAQ that can help you build a reproducible example, or reprex
, for this purpose.
It can be a little difficult to figure out what data to include in a reprex—especially if you're working with medical or otherwise confidential data, which absolutely shouldn't be shared. This thread has some discussion on that:
We don't really need to know exactly what data you have—we're more interested in how it's structured, what the column names are, whether each group has 1 or many rows, that sort of thing. If you can give a synthetic data set (ie. made up values) with maybe 10--100 rows, that can help us get you started