Hello @LuciaFerrer,
Welcome to the forum
select
cannot handle a function as it is looking for a column. I can help you if you can post what it is you're trying to achieve and a reprex of your code (See here: FAQ: How to do a minimal reproducible example ( reprex ) for beginners)