59 karma · joined May 3, 2009
set.seed(123)
dfrm <- data.frame(height=runif(20),
name=paste(sample(LETTERS[1:5],20,replace=TRUE),letters[1:20]))
subset(dfrm, grepl('^D',name), sel=height)
Basic R functions like subset, transform, with(in), reshape, aggregate, (a,ma,ta,sa,va}pply, match, grep(l), by, split, table, etc. allow you to accomplish just about any data frame munging you might want. Add on the plyr, reshape2, data.table, xts/zoo packages and you're ready to tackle just about anything.I'm not a big fan of sqldf because imo R is not supposed to act like SQL. Using sqldf in practice would require a lot of query string manipulation and takes away from the nice functional features of R.
Nevertheless, it is very easy to write incomprehensible R code. The best way to avoid this is to take one of the existing style guides (Google, Hadley Wickham's) and adopt it seriously.
http://sandytransit.alastair.is/opentripplanner-webapp/index... Nov 01 2012 21:26:37 GMT-0400 (Eastern Daylight Time)&arriveBy=false&itinID=1&wheelchair=false&preferredRoutes=&unpreferredRoutes=
cache? sigh
Please, for your wife and kid(s), get out of this horrible situation.
I'd really like to switch to Python+numpy/scipy, but I haven't been able to find an equivalent of a data.frame, or some numeric+string data structure that allows for easy slicing on both.
Does anybody have any suggestions?
A small example: http://www.google.com/search?hl=en&q=site:http://news.yc...
Splitting in Smooth Gestures means taking the current tab and those to the right and moving them to a separate window. Merging takes the current window's tabs and appends them to the last focused window.
https://chrome.google.com/extensions/detail/lfkgmnnajiljnolc...
Some of the functionality is pretty cool (i.e., haven't seen it in All-in-One Gestures for Firefox), like merging and splitting tabs.
The Market for News
http://www.economics.harvard.edu/faculty/shleifer/files/mark...