Etikettarkiv: plyr

Using R: quickly calculating summary statistics from a data frame

A colleague asked: I have a lot of data in a table and I’d like to pull out some summary statistics for different subgroups. Can R do this for me quickly? Yes, there are several pretty convenient ways. I wrote … Läs mer

Publicerat i computer stuff, data analysis, english | Märkt , , , | 8 kommentarer

Using R: writing a table with odd lines (again)

Let’s look at my gff track headers again. Why not do it with plyr instead? d_ply splits the data frame by the feature column and applies a nameless function that writes subsets to the file (and returns nothing, hence the … Läs mer

Publicerat i data analysis, english | Märkt , | Lämna en kommentar