Skip to content
Prev 181654 / 398502 Next

R Books listing on R-Project

G. Jay Kerns wrote:
I don't know what the editorial policy is, but Kurt Hornik put my book
up when I asked him to.  (The BibTeX entries for both books are at
the bottom of this message, in case that's useful.)

Jay: why not post your R-books how to on the wiki itself???


  I wrote some R code to wikify the R-books list from the
R web site -- it won't deal with LaTeX code in the abstract,
but otherwise should convert automatically.

w <- readLines(url("http://www.r-project.org/doc/bib/R-books.bib"))
g <- c(grep("^@",w),length(w)+1)
gd <- diff(g)
gd2 <- rep(1:length(gd),gd)
w2 <- split(w,gd2)
w2 <- w2[-na.omit(match(g,grep("^@comment",w)))]
w3 <- lapply(w2,
             function(x) { c("<bibtex>",x,"</bibtex>") })
w4 <- lapply(w3,
             function(x) {
               abs.start.token <- "^ *abstract *= *{"
               abs.end.token <- "} *, *$"
               abs.start <- grep(abs.start.token,x)
               abs.end <- grep(abs.end.token,x[-(1:abs.start)])+abs.start
               abstr <- x[abs.start:abs.end]
               n <- length(abstr)
               abstr[1] <- gsub(abs.start.token,"",abstr[1])
               abstr[n] <- gsub(abs.end.token,"",abstr[n])
               c(x[-(abs.start:abs.end)],"",abstr)
             })
           



@book{crawley_r_2007,
	edition = {1},
	title = {The R Book},
	isbn = {0470510242},
	publisher = {Wiley},
	author = {Michael J. Crawley},
	month = jun,
	year = {2007}
}
@book{gelman_data_2006,
	address = {Cambridge, England},
	title = {Data Analysis Using Regression and {Multilevel/Hierarchical}
Models},
	url = {http://www.stat.columbia.edu/~gelman/arm/},
	publisher = {Cambridge University Press},
	author = {Andrew Gelman and Jennifer Hill},
	year = {2006},
	keywords = {uploaded}
}