As Borris mentioned, paste0 works well for this.
Another option is the sprintf function:
sprintf("c%i", 1:10)
For this example they do the same thing, but as things become more
complicated sometimes you will want paste0 and sometimes sprintf will
be better.
Compare the above to
sprintf("c%02i",
On CRAN there are Task Views which are moderated lists and summaries
of packages available for specific topics. The first one
(alphabetically) is the Bayesian task view:
https://cran.r-project.org/web/views/Bayesian.html which lists many
packages for doing/learning Bayesian statistics using R. Th
Strike that one sentence in brackets: "[In point of fact, the R Data
Import/Export Manual suggests using perl]", to pre-process data before
loading into R. The manual's recommendation only pertains to large
fixed width formatted files [see #1], whereas Laurent's data is
whitespace-delimited:
> rea
Full schedule is available on developer.r-project.org.
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk Priv: pda...@gmail.com
__
4 matches
Mail list logo