Re: [R] How to make a vector with string elements without space

2020-05-24 Thread Greg Snow
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",

Re: [R] Bayesian estimation with MCMC

2020-05-24 Thread Greg Snow
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

Re: [R] iterators : checkFunc with ireadLines

2020-05-24 Thread William Michels via R-help
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

[R] [Rd] R 4.0.1 scheduled for June 6

2020-05-24 Thread Peter Dalgaard via R-help
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 __