2007

Christmas presents…

December 21, 2007 | Egon Willighagen

Our Christmas tree has not been decorated yet, but the presents are there: the BMC Bioinformatics paper on userscripts in life sciences, Bioclipse 1.2.0, a long list of blogs to rate, and a very nice overview from Wendy Warr on workflow environments, d... [Read more...]

A bugfix release for rjags

December 18, 2007 | Martyn

Several people have written in to tell me that rjags crashes if you  re-run a modelling script in the same R session.  The crash is caused by a memory management bug in the JAGS library that is triggered when you … Continue reading → [Read more...]

Rattle: an R GUI

December 16, 2007 | dataninja

Rattle is a graphical interface to R. It supports basic data management tasks, as well as a number of different modeling functions. I haven’t had a chance to test it out yet since I don’t have my R installation  completely up to date, but it looks promising. For ... [Read more...]

Convert factors to numbers

November 29, 2007 | Forester

If you have a vector of factors it is easy to get the factor level; however, I always forget how to extract the factor value. I ran into the answer here. __ x x [1] 1.61 1.12 1.26 0.09 -0.13 0.16 -0.03 -0.1 0.09 -0.47 [11] A B Levels: -0.03 0.09 -0.1 -0.13 0.16 -0.47 1.12 1.26 1.61 A B__ as.numeric(x) [1] 9 7 8 2 4 5 1 3 2 6 10 11 NA__ ... [Read more...]

An R-based genetic algorithm

November 19, 2007 | Egon Willighagen

During my PhD I wrote a simple but effective genetic algorithm package for R. Because there was a bug recently found, and there is interest in extending the functionality, I have set up a SourceForge project called genalg.The package provides GA support for binary and real-value chromosomes (and integer ... [Read more...]

Preparing plots for publication

November 15, 2007 | Forester

The plotting capabilities of R are excellent; however, when I am preparing a figure for publication, I often need to combine multiple plots or add objects (e.g., arrows or text) to an existing plot. While this can be accomplished in R, my patience for ... [Read more...]

Linear panel data models in R: The PLM package

November 10, 2007 | dataninja

The plm package for R lets you run a number of common panel data models, including The fixed effects (or within) estimator The random effects GLS estimator It also allows for general GLS estimation, as well as GMM estimation, and includes a feature for heteroscedasticity consistent covariance estimation. It’s ... [Read more...]

Changing the fonts in R plots

October 28, 2007 | James Keirstead

Tweet I use R to do almost all of my statistical analysis and plotting. It has a very steep learning curve but once you get into it, it’s very powerful and you can customise almost anything. The only problem is that these changes are not always obvious or easy ...
[Read more...]

Quick-R: a great R tutorial site

October 23, 2007 | dataninja

Quick-R, by Robert Kabacoff, is a wonderful R introduction site. It covers data management, basic and advanced statistics, and graphing in R, and it is aimed at an audience that has previous experience using other packages (such as SAS or Stata) that w... [Read more...]

Approximate sunrise and sunset times

October 17, 2007 | Forester

This function is not perfect, but it does a reasonable job estimating sunrise and sunset times for my field site. If more accurate data are required, try here. Note, the command to calculate day of year is: strptime(x, "%m/%d/%Y")$yday+1suncalc [Read more...]

Convert polar coordinates to Cartesian

October 14, 2007 | Forester

When I want to calculate the coordinates of a location (e.g., a nest or burrow) based on distance and bearing from a grid point, this function helps me avoid writing down SOH-CAH-TOA every time. Just note that the bearing in this case is from the grid ... [Read more...]

GillespieSSA 0.3-1 released

October 4, 2007 | Mario Pineda-Krch

I recently rolled up the new version of the GillespieSSA package, version 0.3-1. The tar ball of the new version is posted on its web page (here). I also submitted it to CRAN so in (due time) it should appear … Continue reading → [Read more...]

Reorder factor levels

October 3, 2007 | Forester

Very often, especially when plotting data, I need to reorder the levels of a factor because the default order is alphabetical. There must be many ways of reordering the levels; however, I always forget which package to look in. A direct way of reorderi... [Read more...]

R video tutorial number 2

October 2, 2007 | dan

READ TEXT FILES, RUN MODELS The Decision Science News R video tutorials continue with number 2. (If you missed that last one, you will want to watch R Video Tutorial Number 1 first.) The Goldstein pedometer dataset can be downloaded from http://www.dangoldstein.com/flash/Rtutorial2/pedometer.csv Topics covered this ... [Read more...]

R video tutorial number 1

September 26, 2007 | dan

LEARN R BY JUST WATCHING For this week, Decision Science News has created a video tutorial on how to get started using the R Language for Statistical Computing. (The tutorial is best viewed in your browser’s full-screen mode, try pressing F11 in Windows). R is free and open source, ... [Read more...]

GillespieSSA on CRAN

September 21, 2007 | Mario Pineda-Krch

So it’s official – my R package GillespieSSA has been posted to the official list of packages on CRAN (The Comprehensive R Archive Network). Check it out. Now back to my manuscript. Over the last few days I have been … Continue reading → [Read more...]
1 2 3 4

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)