Open ColinFay opened 2 years ago
I think find()
assumes data frames indeed. If you don't want that, you may want to try iterate()
: https://jeroen.github.io/mongolite/query-data.html#iterating
Thanks a lot, that definitely matches what I wanted to do :)
I stil feel like the doc is a little bit unclear about what/how handler
works, so do you want to keep this issue open?
It's unclear how
find(handler = )
works.The documentation says:
Which seems to imply that defining another handler would allow to return something else than a single dataframe.
Digging into the code,
mongo_stream_in
does the following:meaning that
handler()
is always called withpost_process()
, which does:So it will always be a dataframe or a list of dataframe?
That raises the following questions:
the end of
mongo_stream_in
isso if the handler is defined, nothing is returned?
My use case is the following :
To sum up, I don't want the automatic dataframe conversion. How do we achieve that in find?