rmongodb
rmongodb copied to clipboard
Create method to construct data.frame or data.table from NoSQL structure
rbind.fill looks like a solution.
We should use data.table::rbindlist
. But do it carefully because of arrays. rmongodb should generate error if any object from cursor contains array. Also we can ask to unwind or exclude array.
This might be as simple as replacing rbind with rbind.fill in mongo.find.all in the "if (data.frame)"?
rbind.fill()
is quite slow function. I will try to provide much better solution shortly.