News for hackers. Stuff that matters.
Re:How R Took the World of Statistics by Storm by jordigh on Saturday November 21, 2015 @10:28PM (#10608958)
I've regretted that Octave hasn't done for Matlab what R did for S. I understand some of the cirumstances that made this happen, but I'm deeply saddened of the entrenchment that Matlab has in scientific computing. It's getting chipped away little by little at the edges by Python, and to a lesser extent by Julia, but Matlab still is strong. And yes, some uses of Matlab can be replaced by R, but overall the two packages target different problem domains.

I'm taking a break from Octave, but I plan to come back to it and take Matlab head-on, not chip away at the edges.

Re:How R Took the World of Statistics by Storm by rocssa on Saturday November 21, 2015 @10:58PM (#10609024)
I think the main problem octave faces is matlab's libraries (such as simulink) which have no comparable open source or even free alternatives, that and writing matlab code sucks for anything bigger than a 50 or 100 lines.

Anyone that isn't using those could probably switch to octave with few issues but last time I checked some functions were starting to differ (see eig)

Octave is nice when you really need to have matlab compatible files but don't have a matlab license but now everyone that I know in the sciences if they are not using matlab and don't need to use fortran/c/c++ they are using python because why keep the matlab syntax if you can gain so much by switching to another language.

Re:How R Took the World of Statistics by Storm by vt240 on Saturday November 21, 2015 @11:35PM (#10609096)
I used OpenModelica a number of years ago as a simulink replacement on a project which couldn't afford MATLAB.

https://openmodelica.org/

EDIT: Also, although it's not opensource, I had used Mentor SystemVision eons ago in college. It now has a free web interface. I haven't tried it, but honestly, what could be worse than DxDesigner ;-)

https://www.systemvision.com/

Re:How R Took the World of Statistics by Storm by outlace on Sunday November 22, 2015 @12:36AM (#10609190)
I think Julia stands a really good chance at "chipping away" Matlab to a significant degree once it gets to a stable version 1.0 The syntax is close enough to Matlab to make the switch fairly easy, its got the performance, and the community has already developed a lot of cool scientific computing libraries even though each new version has breaking changes.
Re:How R Took the World of Statistics by Storm by plinkplonk on Sunday November 22, 2015 @02:10AM (#10609337)
I think when Julia gets to 1.0, Matlab will begin to decline in use. I also think MathWorks is well aware of this "threat". The next few years will be interesting.
Re:How R Took the World of Statistics by Storm by datashovel on Sunday November 22, 2015 @03:13AM (#10609435)
I'm optimistic about Julia also as a general purpose programming language. It seems to have taken a lot of good features from a lot of different languages, and managed to do it in a way that feels natural to me.
Re:How R Took the World of Statistics by Storm by KingMob on Sunday November 22, 2015 @06:54PM (#10612066)
As someone who had to use a ton of Matlab in grad school, Julia's (and Python's) biggest issue in overtaking Matlab is replicating the large collection of battle-tested add-ons that Matlab offers.

Matlab is a crappy language, but a productive environment.

Re:How R Took the World of Statistics by Storm by cwyers on Saturday November 21, 2015 @10:55PM (#10609018)
> I understand some of the cirumstances that made this happen

What are they?

Re:How R Took the World of Statistics by Storm by jordigh on Sunday November 22, 2015 @11:12AM (#10610459)
The story has fallen off the front page, so there's no point in writing a detailed response to this. If you're still interested, email me at [email protected] for my analysis.
Re:How R Took the World of Statistics by Storm by monksy on Saturday November 21, 2015 @10:33PM (#10608968)
Compared to Matlab. I liked Octave a lot. The kOctive gui was great.
Re:How R Took the World of Statistics by Storm by sampo on Sunday November 22, 2015 @05:43PM (#10611821)
> I've regretted that Octave hasn't done for Matlab what R did for S

R was much more programmable that the other systems (except S) in that time -- while the R language is not pretty, the scripting languages in SAS, Stata etc. were much worse. So R provided an improvement in people's workflow. Whereas Octave is just a free version of the same language as Matlab (with some small improvements).

So, switching from SAS, Stata, SPSS etc. to R provided an improvement in productivity, but switching from Matlab to Octave does not.

Re:How R Took the World of Statistics by Storm by jordigh on Sunday November 22, 2015 @05:59PM (#10611885)
You can make the same comparison between Fortran and Octave as you do betwenn SAS and R, and Octave at first did not even aim to be Matlab-compatible. Matlab compatibility came years later, as people using Matlab requested it.

This is not the reason for why Octave has not overtaken Matlab. Maybe I should write a blog post about it.

Re:How R Took the World of Statistics by Storm by sandGorgon on Sunday November 22, 2015 @12:44AM (#10609206)
what are the problem domains ? Do you think something like Python Pandas... and especially Jupyter/IPython can replace it ?
Re:How R Took the World of Statistics by Storm by B1gred on Sunday November 22, 2015 @07:41AM (#10609904)
Python has a steeper learning curve and is not as curtailed to simple data analysis. Many use Rstudio (an ide) and use the import data, and other tools to make then skill entry even lower.

Also, mathematicians and statisticians think functionally and the general attitude in python is to do object oriented programming while R is strictly functional programming with a little bit of object programming.

Re:How R Took the World of Statistics by Storm by PlotlyThrowaway on Sunday November 22, 2015 @09:38AM (#10610152)
I'm a little at odds on this--for production quality analyses, (and only for analyses) R is excellent.

However, in my experience, for the data munging required as a preliminary to the analyses, R is worse than bad. It's as if satan himself designed a language.

I find that what then happens is this: data scientists/statisticians/[your favorite word here] become reliant on programmers to clean/format the data to do the analyses.

This is all fine, but those same scientists are then put off learning python, where they could do all of their own munging, and probably 95% of the analysis they need to do, and where they could further add value by writing programs that are easier to production-alize.

Job security for those who know how to write production code, I guess.

Re:How R Took the World of Statistics by Storm by geomark on Sunday November 22, 2015 @10:16AM (#10610267)
Is your assessment based on using recent R packages? I recently learned about dplyr, magrittr and rvest in a couple of recent data science courses and it seems to me that data munging is a pleasure with R. For example, I had a rough time scraping Wikipedia using Python/BeautifulSoup (I might be a little weak using them tbh) but knocked it out with rvest and magrittr. I never wrote it up but this guy[1] did something similar and wrote a nice post about it.

[1] http://opiateforthemass.es/articles/james-bond-film-ratings/

Re:How R Took the World of Statistics by Storm by jasonpbecker on Sunday November 22, 2015 @10:13AM (#10610255)
I couldn't disagree more. R is great at munging pretty much everything but unstructured textual data. The tools are definitely behind Python if you're dealing with literal written documents.

I don't know anyone who considers themselves a "data scientist" of any sort that doesn't view their job as 80% or more data wrangling/munging/cleaning.

I write production ETL processes in R at my current job. AMA.

Re:How R Took the World of Statistics by Storm by PlotlyThrowaway on Sunday November 22, 2015 @02:41PM (#10611158)
May I ask what tools you favor in the R environment? I just haven't found anything as performant for operations on irregular and poorly formatted time series as the pandas library, and in fact I just finished an ETL in pandas for my current job.

I'm always interested in learning a new tool, though.

Re:How R Took the World of Statistics by Storm by jasonpbecker on Sunday November 22, 2015 @04:42PM (#10611607)
I don't work much with data that would benefit from being very tight about datetimes as a dimension. I'd have to know a bit more about what was challenging before I could confidently recommend for your particularly case. My email is on my profile and I'd be happy to chat there if it's something that would be helpful.

I have largely avoided ts, zoo, etc where possible. Time series stuff seems to have a lot of specialized tooling all of which tends to be much more strict about data structure than I'm comfortable with for my flow.

Re:How R Took the World of Statistics by Storm by grayclhn on Sunday November 22, 2015 @10:29AM (#10610320)
I might be misrembering, but I think that it was assumed for a while that perl would be used for data munging, so there wasn't much effort put into that part of the language. That's being addressed now by packages, and a lot of the uptake in R seems to coincide with work by R developers to make the language less hostile to new users. (Have you used the bundled IDE? Satan's work again.)

BUT perl + R was a really nice combination for a while.

Re:How R Took the World of Statistics by Storm by B1gred on Sunday November 22, 2015 @10:21AM (#10610288)
Depends on coworkers. When in school, my professors couldn't do anything if it wasn't in a nice csv file. But, us data scientist / statistical programmers are well versed in digesting data in almost any form, especially a database. When on a new project, I just get handed new ip addresses and login information and I am off.
Re:How R Took the World of Statistics by Storm by lottin on Sunday November 22, 2015 @10:18AM (#10610273)
What do you mean by data munging? Things like extracting data from XML files for instance?
Re:How R Took the World of Statistics by Storm by B1gred on Sunday November 22, 2015 @10:33AM (#10610330)
It can mean anything, and that is why it is hard. Many old school statisticians can not work with anything other than csv, excel spreadsheets or basic sql queries. Munging is the conversion to a nice format that can then be used for analysis.
Re:How R Took the World of Statistics by Storm by lottin on Sunday November 22, 2015 @10:57AM (#10610407)
Understood. Yeah, this sounds like a job for awk or some such specialised tool.
Re:How R Took the World of Statistics by Storm by yen223 on Sunday November 22, 2015 @05:56AM (#10609729)
I wouldn't be surprised if it did. Lots of universities are slowly switching to Jupyter as the primary computational environment.
Re:How R Took the World of Statistics by Storm by joelthelion on Sunday November 22, 2015 @06:13AM (#10609755)
Numpy/Scipy (and Julia, maybe) are taking this role. There's really no reason to use Matlab these days.
Re:How R Took the World of Statistics by Storm by siscia on Sunday November 22, 2015 @06:31AM (#10609782)
There are a lot of reason to use Matlab these days.

A lot of package are built from matlab and not for Python, if you are a PhD student you want to use those package, not write your own, if you really really need to write some software you want to write it on top of something that already exists...

It is really sad, but it is the reality...

Re:How R Took the World of Statistics by Storm by KingMob on Sunday November 22, 2015 @07:04PM (#10612099)
If only that were true. There are many, many reasons to keep using Matlab, mostly toolboxes and decades of software written on top of it. As I said in another comment, Matlab is a bad language, but a productive environment.

In grad school, if I wanted to do my own EEG connectivity analyses, I could just include the Signal Processing Toolbox, the Stats Toolbox, and crunch my own numbers. Or, if I wanted to do a more standard analysis of my fMRI or EEG data, I would turn to the world's most popular open-source toolkits (SPM and Fieldtrip), both of which require... you guessed it, Matlab.

The only place I ever found Matlab's libraries deficient for my needs was in machine learning. (I ended up doing an SVM-based spotlight fMRI analysis in Python.)

There's a lot of lock-in and quality toolboxes around Matlab, Python/Julia won't knock it over yet, though I wish them the best of luck.