Re: [R] How to join path with arguments

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Tue, 19 Feb 2008 09:39:42 -0300

Try this:

name1 <- 'sample-plot'
filename <- sprintf("%s.png", name1)
inputdir <- '/path/to/dir'
paste(inputdir, filename, sep="")

On 19/02/2008, Hyunchul Kim <sundol313_at_naver.com> wrote:
> Hi, all
>
> How to format and join strings ?
> For example, like following short python examples.
>
> *********
> name1 = 'sample-plot'
> filename = '%s.png' % name1
>
> inputdir = '/path/to/dir'
> os.path.join(inputdir, filename)
>
> **********
>
> Best,
> Hyunchul Kim
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
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 Tue 19 Feb 2008 - 12:41:47 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 Tue 19 Feb 2008 - 14:30:15 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