"How many citations" would be a count not an average, you can't average non numeric values, but you can count them. Try the count()
function.
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.