Closed GoogleCodeExporter closed 8 years ago
Thanks for the issue report. I believe I fixed this by replacing the for loop
with:
## Bring data frame in the right column order
vars <- c(idvar, timevar, xvar, yvar, colorvar, sizevar)
vars.pos <- na.omit(match(vars, names(data)))
nm <- c(names(data)[vars.pos], names(data)[-vars.pos])
data <- cbind(data[, vars.pos], data[,-vars.pos])
names(data) <- nm
See also
https://code.google.com/p/google-motion-charts-with-r/source/detail?r=384
Original comment by markus.g...@googlemail.com
on 11 Jan 2014 at 6:30
Thanks for the preview. Looks like that should force expected col order, and
simply bind unreferenced columns on the right. Looking at the resulting "data"
data.frame, it looks promising. Looking forward to this release, so I can use
this without my group.
ddt
Original comment by dant...@gmail.com
on 27 Jan 2014 at 5:13
Original issue reported on code.google.com by
dant...@gmail.com
on 8 Jan 2014 at 10:51