I think we need to see the actual Quarto file and a sample of your data. You can cut out most of the verbiage but we need the YAMAL and all the coding.
Have a look at this FAQ for some suggestions on setting up a question on the forum. Oh, and I forgot; wercome to the forum.
A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here.