January 2011

When 1 * x != x

January 16, 2011 | richierocks

Trying to dimly recall things from my maths degree, it seems that in most contexts the whole point of the number one is that it is a multiplicative identity. That is, for any x in your set, 1 * x is equal to x. It turns out that when you move to ... [Read more...]

Dona eis Python, whap!

January 15, 2011 | John Johnson

Well, I'm taking the plunge and learning Python. We'll see how this goes. Then I'll try NumPy (and SciPy, if it gets ported), and see of I can get R and Python talking. [Read more...]

Missing reference in Monte Carlo Statistical Methods

January 15, 2011 | xi'an

A few days ago, Peng Yu sent me this email Dear Prof. Robert, The citation Edwards and Sokal (1988) appears on page 326 of your book MCSM2. However, I don’t find in in the Reference section (it would have appear on page 601 if it is in the reference section). I don’...
[Read more...]

A lightweight object browser for R

January 15, 2011 | Luke Miller

Get access to a simple object browser in R so that you can see what variables, data frames, model objects and other junk you have in memory currently. If you don't want to install a full-fledged integrated development environment, this option may be fo... [Read more...]

Adding lines or points to an existing barplot

January 15, 2011 | danganothererror

Sometimes you will need  to add some points to an existing barplot. You might try but you will get a funky looking line/points. It’s a bit squeezed. This happens because bars are not drawn at intervals 1:10, but rather on something else. This “else” can be seen if you ... [Read more...]

R Code Documentation Template

January 15, 2011 | Matt Bogard

# *------------------------------------------------------------------# | PROGRAM NAME: # | DATE: # | CREATED BY: # | PROJECT FILE: # *----------------------------------------------------------------# | PURPOSE: # |# *-------...
[Read more...]

Parsing and plotting time series data

January 15, 2011 | csgillespie

This morning I came across a post which discusses the differences between scala, ruby and python when trying to analyse time series data. Essentially, there is a text file consisting of times in the format HH:MM and we want to get an idea of its distribution. Tom discusses how ...
[Read more...]

Bipartite networks and R

January 14, 2011 | Scott Chamberlain

Earlier, I posted about generating networks from abundance distributions that you specify. If this post was interesting, check out Jeff Kilpatrick's website, where he provides code he produced in R and Octave to compare real bipartite networks to ones ...
[Read more...]

Statistical podcast: Random and Pseudorandom

January 14, 2011 | csgillespie

This morning when I downloaded the latest version of In our time, I was pleased to see that this weeks topic was “Random and Peudorandom.” If you’re not familiar with “In our time”, then I can I definitely recommend the series. Each week three academics and Melvyn Bragg discuss ...
[Read more...]

Changing phylogeny tip labels in R

January 14, 2011 | Samuel Brown

During the process of molecular systematic research, specimens are given code names and numbers to keep track of data through the pipeline. These can contain a lot of information of relevance to the researcher, but unfortunately are meaningless to others who aren't as involved with the data. On publication, it ... [Read more...]

Remove all rows of an R dataframe

January 13, 2011 | --

I should have probably figured this out a long time ago, but as I get deeper into programming with R, I am finding the need to remove all rows from a dataframe.  I was making this alot harder than it had to be. your.df [Read more...]

Visualizing the Haiti earthquake with R

January 13, 2011 | David Smith

Yesterday was the one-year anniversary of the Haiti earthquake, and to put the scale of the event in context San Francisco bureau chief for New Scientist magazine and data journalist Peter Aldhous created a time-lapse animation of all large earthquakes in the last year, beginning with the 7.0-magnitude Haiti event. ... [Read more...]

Survival paper (update)

January 13, 2011 | csgillespie

In a recent post, I discussed some  statistical consultancy I was involved with. I was quite proud of the nice ggplot2 graphics I had created. The graphs nicely summarised the main points of the paper: I’ve just had the proofs from the journal, and next to the graphs there ...
[Read more...]
1 4 5 6 7 8 11

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)