Re: [R] Adding values to the end of a data frame

2011-06-08 Thread Abraham Mathew
I'm trying to develop this function so that I can efficiently generate all possibile combinations of the strings. So I have certain roots, prefixes, and sufixes. I also have different combinations of the data, some with two strings (roots, prefix) and others with three strings (roots, prefix, suff

Re: [R] Adding values to the end of a data frame

2011-06-07 Thread 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, A

[R] Adding values to the end of a data frame

2011-06-07 Thread Abraham Mathew
Let's say that I'm trying to write a functions that will allow me to automate a process where I examine all possible combinations of various string groupings. Each time I run the one function, I want to include the new values to the end of a data frame. The data frame will basically be one column w