TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What are some best resources for learning R?

9 pointsby xijuanover 12 years ago
I will be starting graduate school this year September for quantitative psychology program. I really need to learn R to be able to conduct the research. My undergraduate degree is just psychology so I don't have too much background in programming although I did learn basic R in several statistics courses in psychology. Please let me know any tip or resource for learning R.

4 comments

houshuangover 12 years ago
I'll be following this post, since I'm in the same situation (well, in the middle of a graduate program, having done quant classes with SPSS, which I could never grow to like, and now discovering and learning R for my research). There's a lot of great free resources out there - I've been going on a bit of a resource hunt, and gathered lots of links here: <a href="http://reganmian.net/wiki/R" rel="nofollow">http://reganmian.net/wiki/R</a>. Totally unsorted dump at the moment, I'll eventually sort through it, but might still be useful.<p>Yesterday I spent the whole day watching a Google tech talk by Hadley Wiggins (creator of GGPlot) talking about exploratory data analysis with ggplot and plyr, and replicating every single step in RStudio with RMarkdown (mix of code and text). I played with every single line, took arguments apart, tried out variations, until I understand what each piece did.<p>Here are my notes: <a href="http://rpubs.com/houshuang/ggplot-notes" rel="nofollow">http://rpubs.com/houshuang/ggplot-notes</a> (RStudio makes it ridiculously easy to publish these kinds of documents online). There's a link to the talk, and the data, there too.<p>One thing I'm looking for is more information about doing survey analysis - I'd love to see a detailed walkthrough (like the file I posted) of someone designing a survey with Likert items, pilot-testing Likert items and generating scales, importing the whole survey with codebook, testing validity of the scales, doing some analysis of findings etc. I've found bits and pieces, but never a complete walk-through.
评论 #5216674 未加载
houshuangover 12 years ago
I've found walk-throughs generated using knitr to be incredibly useful - they show you the commands, and the graphs/tables they generate, they often walk through in small steps so you can follow along, and you also get exposed to a bit of the thinking behind - how to approach analysing different data sets.<p>My friend just posted this analysis of school board data: <a href="http://rpubs.com/dirkchen/knaer-tdsb" rel="nofollow">http://rpubs.com/dirkchen/knaer-tdsb</a>. RPubs is awesome, you can also browse the front page <a href="http://rpubs.com" rel="nofollow">http://rpubs.com</a>, since all documents are public. Lot's to learn here.<p>Two things that would make this easier: One is some more social features on the site, like tagging and voting up (show me examples with scatterplots, etc). It would also be great if there was an option to upload the Rmd sheet, as well as the data files when publishing. Of course, some people publish their entire projects to GitHub, but if it was a lot more convenient, perhaps more people would share - one-button import into your own RStudio, for your own experimentation, would be awesome.
jyuover 12 years ago
I'm currently learning R for the first time in Data Analysis on Coursera. It's great because you are doing things in R to achieve a data analysis goal.<p>It names several resources for getting R help.<p><a href="https://d19vezwu8eufl6.cloudfront.net/dataanalysis/gettingHelp.pdf" rel="nofollow">https://d19vezwu8eufl6.cloudfront.net/dataanalysis/gettingHe...</a><p>Keep in mind, the fastest answer is usually the one you find yourself. Try to search around on google, wikipedia, stackoverflow first. If you're still not sure, ask a question to the R mailing list or Stackoverflow. If it's a Data Analysis / Statistics question, ask on CrossValidated.<p>If you're not sure how to do something in R, check the R libraries first with something like "how to do binomial dist in R". If you know the function you want to call, but don't know how it works, do "?functionName" and "args('functionName')".<p>Here's an R cheatsheet: <a href="http://cran.r-project.org/doc/contrib/Short-refcard.pdf" rel="nofollow">http://cran.r-project.org/doc/contrib/Short-refcard.pdf</a><p>Good luck!
aburan28over 12 years ago
I found the O'Reilly/CodeSchool "Try R" tool to learn R the best because you learn it by using it in a interactive manner <a href="http://tryr.codeschool.com/" rel="nofollow">http://tryr.codeschool.com/</a>
评论 #5216658 未加载