Undefinned colums selected

Again, is hard to help you without a reproducible example, the functions you are using are not base R functions and we don't know from what package do they come from or if they are defined by you.

I notice you speak Spanish so maybe this version of the reprex guide would be easier to follow for you.

Please try to follow the guide and provide a proper reprex.