Re: [R] Creating/Concatenate Strings into another String

From: Hans-Joerg Bibiko <bibiko_at_eva.mpg.de>
Date: Thu, 29 May 2008 10:47:31 +0200

On 29 May 2008, at 10:39, Gundala Viswanath wrote:
> Is there a way to do it?
>
> For example I tried this:
>
> args<-commandArgs()
> fname <- args[6]."-".args[9]
This would work under Perl :)

Look for details: ?paste

Try this:

fname <- paste(args[6], ".", args[9], sep="")

--Hans



R-help_at_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. Received on Thu 29 May 2008 - 10:38:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 29 May 2008 - 11:30:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive