Skip to content

Adding values to the end of a data frame

3 messages · Abraham Mathew, Dennis Murphy

#
Alas, you don't have a suffix2 object defined, but try this:

d1 <- one(prefix, roots)
d2 <- one(roots, suffix)
rbind(d1, d2)

To see a potential flaw in your function (as least as far as console
output is concerned), try
rbind(d1, one(roots, suffix))

HTH,
Dennis
On Tue, Jun 7, 2011 at 3:30 PM, Abraham Mathew <abraham at thisorthat.com> wrote: