Faster implementation of d3df.data.frame