Help with ill formed emails to R-help

trinker

ggplot2orBust
#1
When I write emails to R help list they always wind up messed up and make me look dumb. I've tried using plain text format and rich text in hotmail and the outcome is the same, el sucko. (Here's the LINK to the threaded archive)

Here's an example:

What it looks like
Code:
My solution:
SP <- split(df, df[, 1:2])
minner <- function(x, col = 'numMiss') {    x[which.min(unlist(x[,col])), , drop=FALSE]}
NEW <- do.call('rbind', lapply(SP, minner))SP2 <- split(NEW, NEW[, 'id'])do.call('rbind', lapply(SP2, function(x) minner(x, 'A')))

Cheers,Tyler
What it should look like
Code:
My solution:
SP <- split(df, df[, 1:2])
minner <- function(x, col = 'numMiss') {    
    x[which.min(unlist(x[,col])), , drop=FALSE]
}
NEW <- do.call('rbind', lapply(SP, minner))
SP2 <- split(NEW, NEW[, 'id'])
do.call('rbind', lapply(SP2, function(x) minner(x, 'A')))

Cheers,
Tyler
Any ideas on this non stats question?