rmongodb icon indicating copy to clipboard operation
rmongodb copied to clipboard

Create method to construct data.frame or data.table from NoSQL structure

Open schmidb opened this issue 10 years ago • 3 comments

rbind.fill looks like a solution.

schmidb avatar Dec 04 '13 11:12 schmidb

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.

dselivanov avatar Oct 12 '14 16:10 dselivanov

This might be as simple as replacing rbind with rbind.fill in mongo.find.all in the "if (data.frame)"?

stanstrup avatar Nov 25 '14 11:11 stanstrup

rbind.fill() is quite slow function. I will try to provide much better solution shortly.

dselivanov avatar Nov 25 '14 14:11 dselivanov