[R] Problems with rbind
dieter.menne at menne-biomed.de
Sat Nov 15 18:19:17 CET 2008
> A recent update on base packages on my R installation has introduced a
> problem to my code which did not exist before the update. The offending
> function is rbind, which fails where it was working just fine before the
> I have two zoo objects, foo and bar, indexed by class Date. foo starts
> from "2007-10-09" and bar from "2007-10-10". I attempt to pad bar with a
> zero on Date "2007-10-09".
Your example works for me:
Attaching package: 'zoo'
The following object(s) are masked from package:base :
> bar <- rbind(zoo(0, order.by = index(foo)), bar)
R version 2.8.0 (2008-10-20)
attached base packages:
 stats graphics grDevices datasets utils methods base
other attached packages:
loaded via a namespace (and not attached):
 grid_2.8.0 lattice_0.17-15 tools_2.8.0
View this message in context: http://www.nabble.com/Problems-with-rbind-tp20516377p20517592.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help