Error: Can't subset columns that don't exist. x Column `nobs` doesn't exist.

Hello @LuciaFerrer,

Welcome to the forum :slight_smile: 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)