'Interactive data analysis with R, SparkR and MongoDB: a ...

including the TradesAvgPrice that we want extract, using explode function we split the array in multiple lines: Notice that even if MrkInstance is an array in mongodb, Spark doesn’t respect this structure, it creates an array inside the field TradesAvgPrice that contains the values of TradesAvgPrice ................
................