Comments on: What is the best way to learn R?
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R/
Comments on Ask MetaFilter post What is the best way to learn R?Wed, 20 Jun 2012 20:17:38 -0800Wed, 20 Jun 2012 20:23:02 -0800en-ushttp://blogs.law.harvard.edu/tech/rss60Question: What is the best way to learn R?
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R
What is the best way for me to learn R? In particular, what is the best website or online tutorials for learning to deal with large datasets. <br /><br /> I have a job where I will be expected to manipulate large amounts of data. I'm beginning to get sick of excel and I would love to start to make the jump to R.<br>
<br>
I was wondering if there are any good tutorials or websites that deal with this? Especially sites with data that I can directly use. I have a fair amount of programming experience and I'm familiar with the use of statistics.post:ask.metafilter.com,2012:site.218242Wed, 20 Jun 2012 20:17:38 -0800aleatorictelevisionRstatisticsprogrammingdatadataminingBy: Nomyte
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151621
It doesn't have sample datasets, but the <a href="http://www.statmethods.net/">Quick-R website</a> is detailed and comprehensive without excessive hand-holding. The author covers both data manipulation and statistical analysis.comment:ask.metafilter.com,2012:site.218242-3151621Wed, 20 Jun 2012 20:23:02 -0800NomyteBy: 23
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151626
Here are some actual <a href="http://cran.r-project.org/manuals.html">R Manuals</a>. <br>
<br>
However, <a href="http://pandas.pydata.org/">pandas</a> is in python but offers the core functions of R; if you want more, there's a <a href="http://rpy.sourceforge.net/">python package</a> to use use r plugins directly from python. If you have programming experience, python may be more familiar and approachable than R on the whole.<br>
<br>
As far as data sets, always start with the <a href="http://archive.ics.uci.edu/ml/datasets/Iris">iris dataset</a>. The other data sets on that site will do the trick as far as real-world complexity, though most of them aren't large, so if you just want to check on performance at scale you'll have to check elsewhere. <br>
<br>
Keeping up to date on data use and doing stuff with it, <a href="http://twitter.com/mbostock">Mark Bostock's twitter</a> is a decent starting point. He developed <a href="http://d3js.org">d3</a>, a data-oriented javascript library.<br>
<br>
Any info about what kind of data you'll be manipulating?comment:ask.metafilter.com,2012:site.218242-3151626Wed, 20 Jun 2012 20:30:05 -080023By: shothotbot
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151629
I recommend the <a href="http://www.amazon.com/exec/obidos/ASIN/0596809158/metafilter-20/ref=nosim/">R Cookbook</a> as very useful, also you probably want this <a href="http://cran.r-project.org/doc/contrib/Short-refcard.pdf">cheat sheet</a> someplace handy.<br>
<br>
I strongly recommend using <a href="http://rstudio.org/">RStudio</a> as an environment, plain R is a little grim. <br>
<br>
As always, the best way to learn is try to do something you already know how to do in R. So take one of your complicated spreadsheets and try to make a go of it. <br>
<br>
One quirky thing about R is that it is all about the packages. Someone else has already done 90% of what you need to do. If you are going into time series check out xts. For some improved date and string functions check out lubridate and stringr. For nice graphics ggplot2. To slice and dice your data, plyr. <br>
<br>
I keep an eye on <a href="http://www.r-bloggers.com/">r-bloggers</a> which combines a bunch of different r blogs.comment:ask.metafilter.com,2012:site.218242-3151629Wed, 20 Jun 2012 20:32:37 -0800shothotbotBy: aleatorictelevision
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151635
I'm going to be working with time series data, actually the data from a sensor that is at the mouth of a bay. <br>
<br>
Not quite sure about much beyond that, but I know I will have to somehow filter out the periodic tidal data.comment:ask.metafilter.com,2012:site.218242-3151635Wed, 20 Jun 2012 20:40:55 -0800aleatorictelevisionBy: one_bean
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151647
R has a data class (ts) for time series and does really well with adjusting periodic data. Here's a <a href="http://www.stat.pitt.edu/stoffer/tsa2/R_time_series_quick_fix.htm">tutorial</a>.comment:ask.metafilter.com,2012:site.218242-3151647Wed, 20 Jun 2012 20:53:26 -0800one_beanBy: oceanjesse
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151666
You sure you can't use Matlab? There is a <a href="http://woodshole.er.usgs.gov/operations/sea-mat/">plethora of tools</a> used for time series analysis of marine data that you may or may not be describing. T_tide is <em>exactly</em> what you want to use for filtering out the periodic tides.comment:ask.metafilter.com,2012:site.218242-3151666Wed, 20 Jun 2012 21:19:25 -0800oceanjesseBy: 23
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151667
<a href="http://www.stat.pitt.edu/stoffer/tsa3/">Time Series Analysis and Its Applications: With R Examples</a>. <br>
<br>
(Not a personal recommendation - I haven't read it - but seems relevant.)comment:ask.metafilter.com,2012:site.218242-3151667Wed, 20 Jun 2012 21:21:46 -080023By: shothotbot
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151688
<a href="http://cran.r-project.org/web/views/TimeSeries.html">Here</a> is a big list of time series packages, but you should also poke around in the econometrics section.comment:ask.metafilter.com,2012:site.218242-3151688Wed, 20 Jun 2012 22:19:14 -0800shothotbotBy: rainbowbrite
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151898
I do love R for some purposes, but if you're making the jump from Excel, I would highly recommend something simpler like Stata, which has time series applications built into the program and in general is just much more user friendly. Of course, it is not free like R, but it's not insanely expensive as a business expense.comment:ask.metafilter.com,2012:site.218242-3151898Thu, 21 Jun 2012 07:04:36 -0800rainbowbriteBy: mgogol
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151917
I wrote an <a href="https://github.com/mmarchin/introR">intro to R</a> class (for biologists) that is pretty basic...<br>
<br>
You may also look around your local area, there's quite a few R users groups around now. Sometimes it's nice to have other people to ask in person or commiserate with. Many are listed <a href="http://blog.revolutionanalytics.com/local-r-groups.html">here</a>.comment:ask.metafilter.com,2012:site.218242-3151917Thu, 21 Jun 2012 07:22:43 -0800mgogolBy: Signed Sealed Delivered
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3151922
<a href="http://ask.metafilter.com/183986/Recommendations-for-an-Intro-to-R-course-in-the-NYC-area">This question</a> is nominally about R courses in NYC, but the answers there have several online and general reference links that I've found helpful.comment:ask.metafilter.com,2012:site.218242-3151922Thu, 21 Jun 2012 07:24:29 -0800Signed Sealed DeliveredBy: cromagnon
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3152356
<a href="http://www.amazon.co.uk/Getting-Started-An-introduction-biologists/dp/0199601623/ref=sr_1_1?s=books&ie=UTF8&qid=1340306880&sr=1-1">This is a great starting point and very up-to-date</a>. Seconding the advice about ts.comment:ask.metafilter.com,2012:site.218242-3152356Thu, 21 Jun 2012 12:30:05 -0800cromagnonBy: special-k
http://ask.metafilter.com/218242/What-is-the-best-way-to-learn-R#3157806
I program in R for a living (as an academic/biologist), work with a lot of time-series data, and also develop and maintain various R packages. <br>
<br>
Although I generally do not recommend programming books (since the web has tons of tutorials and material does get dated fast), in your case I suggest you grab a copy of <a href="http://www.amazon.com/exec/obidos/ASIN/1593273843/metafilter-20/ref=nosim/">The Art of R Programming</a>. The books is great (Norm is not a friend but a professional colleague) and well suited for someone with prior programming experience. If you're too poor or too cheap to buy a copy, here is an <a href="http://heather.cs.ucdavis.edu/~matloff/158/PLN/ParProcBook.pdf">earier draft</a> of the book from his website. I would not recommend reading through older tutorials or books (published 2008 or earlier) since so much has changed and old methods have been vastly improved on (especially for time-series and 'big data'). For example, there is a book by Michael Crawley which was great when it first came out but I cringe every time I see someone holding one.<br>
<br>
<br>
Explore the <a href="http://cran.r-project.org/web/views/">CRAN task views</a>. Think of it as a curated app list of sorts. Here's one for <a href="http://cran.r-project.org/web/views/TimeSeries.html">time-series analysis.</a><br>
<br>
When looking at the CRAN page for a package (<a href="http://cran.r-project.org/web/packages/zoo/index.html">example</a>), looks at the reverse depends list to get a sense of newer packages that might have functionaity that you're looking for. That's one easy way to discover new packages of interest.<br>
<br>
If you have an RSS reader, then grab the feed for <a href="http://www.r-bloggers.com/">r-bloggers</a>. It's an aggregator for R related blog posts from all kinds of people (academics like me, industry people etc). Although I mostly skim through posts, there are plenty of amazing tutorials, new package announcements etc that are extremely useful.<br>
<br>
Once you're up and running and you have unanswered questions, head to <a href="http://stackoverflow.com/questions/tagged/r">Stack Overflow</a> and browse through the R tag. It's a treasure trove of high quality answers and as a beginner, you will most likely find what you're looking for. If not, feel free to ask a question (but be sure to provide a clear, <a href="http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example">reproducible example</a>). <br>
<br>
<br>
Not sure where you live but look at <a href="http://www.meetup.com/">meetup.com</a> for a R-users group. I live in the bay area and we have a large one (200+ people). The meetings are usually tutorials or talks on new and interesting stuff in R. <br>
<br>
Finally, here is a shameless <a href="http://inundata.org/R_talks/meetup/">self-link</a> for a talk I gave to people in my department who were new to learning R. There might be something useful for you in there.<br>
<br>
The best way is just to dive into R after a brief introduction to the basics. The learning curve is steep for some (maybe not so much for you since you have prior exposure to programming) but very rewarding.comment:ask.metafilter.com,2012:site.218242-3157806Tue, 26 Jun 2012 10:06:56 -0800special-k