[R] using an objects contents in a text string
Sarah Goslee
sarah.goslee at gmail.com
Wed Aug 25 14:10:25 CEST 2010
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 <josquint at 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
More information about the R-help
mailing list