tag:blogger.com,1999:blog-8430816440647980852.post5925649278423461390..comments2015-03-31T06:32:47.480-07:00Comments on bioinfomofo: R: hard things are easy and easy things are hardDave Lawrencehttp://www.blogger.com/profile/13478596509691546658noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8430816440647980852.post-12054640563180442492014-11-06T20:35:05.651-08:002014-11-06T20:35:05.651-08:00aRrgh: a newcomer's (angry) guide to R "R...<a href="http://tim-smith.us/arrgh/" rel="nofollow">aRrgh: a newcomer's (angry) guide to R</a> "R.... suffers from ... decades .. of stupid hacks from a community containing, to a first-order approximation, zero software engineers. "<br /><br /><a href="http://www.talyarkoni.org/blog/2012/06/08/r-the-master-troll-of-statistical-languages/" rel="nofollow">R The Master Troll of statistical languages</a><br />Dave Lawrencehttps://www.blogger.com/profile/13478596509691546658noreply@blogger.comtag:blogger.com,1999:blog-8430816440647980852.post-20847606372879157422014-02-14T20:43:22.588-08:002014-02-14T20:43:22.588-08:00Thanks Mike, I simplified the examples.
As for pa...Thanks Mike, I simplified the examples.<br /><br />As for paste0, I think that's a really great example of why I don't like R, it seems the solution to everything is "import a function into global scope"<br /><br />Almost every language higher than C has the '+' string concatenation syntactic sugar. Sugar matters when you spend all day doing things. And to compare R vs Pandas dataframes - in Pandas dataframe objects are object methods, it's just a lot nicer to use.Dave Lawrencehttps://www.blogger.com/profile/13478596509691546658noreply@blogger.comtag:blogger.com,1999:blog-8430816440647980852.post-79204009595755399662014-01-30T06:09:29.477-08:002014-01-30T06:09:29.477-08:00Of course, if you do a lot of string pasting with ...Of course, if you do a lot of string pasting with the same options, then write a new function that has sep='' as the default, and write a new ordering function that works the way *you* think it should. No one is stopping you. Don't complain about how something works, instead make it better if it is useful. I would use Hadley Wickham as an example. He takes things that he does a lot (string manipulation, working with dates, cleaning data are some examples) and makes them better (stringr, lubridate, dplyr are matching packages).<br /><br />Panda's is built on top of Python. EdgeR is built on top of R. You can write your own functions to do things in a way that is easiest for you. Anonymoushttps://www.blogger.com/profile/11732353840939638830noreply@blogger.comtag:blogger.com,1999:blog-8430816440647980852.post-60813095108058023772014-01-30T01:52:38.036-08:002014-01-30T01:52:38.036-08:00I get your point, but your R examples could be wri...I get your point, but your R examples could be written more succinctly:<br /><br />`paste0(a, b)` instead of `paste(a, b, sep='')`<br /><br />`arrange(dd, desc(col), b)` instead of `dd[with(dd, order(-col, b)), ]`<br />Anonymoushttps://www.blogger.com/profile/08111599436928346467noreply@blogger.com