I'm a bit confused by your question, but you might just want paste: paste(input.variable.name, "data.txt", sep="_")
Sarah On Wed, Aug 25, 2010 at 8:06 AM, josquint <josqu...@unimelb.edu.au> wrote: > > ALSO .... I have had a play with cat() but have also not got this to > work.... > > > e.g. > > write(x, file = cat(input.variable.name , file = "", sep = "_data.txt", ), > ...) > > but this does not seem to work and I'm sure it is not the correct use of > cat() > > Thanks. > -- -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.