3 ms·
> df$date_put_on_list <- as.POSIXct(df$date_put_on_list, format = "%m/%d/%Y", tz = "EST") It's a cool blog post but that code isn't near readable to me. Long l
by yukichan 13y ago
> df$date_put_on_list <- as.POSIXct(df$date_put_on_list, format = "%m/%d/%Y", tz = "EST")
It's a cool blog post but that code isn't near readable to me. Long lines in a tiny rectangle hidden behind horizontal scroll don't make it any easier. It looks like a box of arbitrary characters stuffed into as little space as possible.
Although the raw link is a little easier on the eyes:
https://gist.githubusercontent.com/statwonk/9448932/raw/84b941b6411baa67e1d90f94c729109f4d0d4864/gistfile1.r https://gist.githubusercontent.com/statwonk/9448932/raw/84b9...
Whoever named that method POSIXct needs to like leave the job of naming things to other people maybe.
- RA_Fisher 13y agoYou're right. My pygments Octopress plugin died and I can't figure out how to revive it, some kind of weird cache issue. Also, I see that I forgot to add the data. You can find it here: https://github.com/statwonk/fbi_topten/blob/master/data.csv https://github.com/statwonk/fbi_topten/blob/master/data.csv
- foobarqux 13y agoWhere did you get the data?
- RA_Fisher 13y agoI got the data from the FBI's website. http://www.fbi.gov/stats-services/publications/ten-most-wanted-fugitives-60th-anniversary-1950-2010/chronological_listing http://www.fbi.gov/stats-services/publications/ten-most-want... I did a bit of cleaning here and there by literally Googling and finding old articles like these: http://news.google.com/newspapers?nid=1310&dat=19780915&id=w_lVAAAAIBAJ&sjid=CuIDAAAAIBAJ&pg=2278,4163503 http://news.google.com/newspapers?nid=1310&dat=19780915&id=w... http://www.lasvegassun.com/news/1998/feb/22/las-vegas-slaying-suspect-makes-fbis-most-wanted-l/ http://www.lasvegassun.com/news/1998/feb/22/las-vegas-slayin... http://vicksburgdailynews.com/2012/05/11/bain-sisters-found-alive-mayes-dead/ http://vicksburgdailynews.com/2012/05/11/bain-sisters-found-... etc.
- minimaxir 13y agoR doesn't like as.Date(), unfortunately.
- RA_Fisher 13y agoYep, I used to used as.Date(), but ggplot2 doesn't like class Date, it prefers POSIXct.