[R] Creating/Concatenate Strings into another String

Hans-Joerg Bibiko bibiko at eva.mpg.de
Thu May 29 10:47:31 CEST 2008


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



More information about the R-help mailing list