Good afternoon, I am new to the forum and I need help, I want to know if in some way the count of the elements that are inside a circular marker can be made.
I attach a reference image of how I have at the moment.
Welcome to the forum! (and it is not afternoon anymore over here in Europe, not that it matters)
Leaflet is a presentation tool, not really meant for counting things (it is meant for drawing maps).
But if you have access to the underlying data structures you should have two separate objects, hopefully in {sf} package format. One should be of polygon geometry type (the blue circle) and the other a bunch of points.
To get the intersection of the two objects you may consider runing sf::st_join() on them, specifying that you want an inner join (both datasets filtered). This is done by setting the parameter left = FALSE (meaning the join is not left, it is inner). The it is only the matter of counting rows.
muchas gracias por la pronta respuesta y la aclaración al respecto sobre el tema de Leaflet y por la posible solución, si alguien tiene alguna formula con la cual se podría trabajar les agradecería inmensamente