User:Jarle Pahr/R

From OpenWetWare

< User:Jarle Pahr(Difference between revisions)
Jump to: navigation, search
Current revision (10:05, 1 March 2014) (view source)
 
Line 58: Line 58:
http://www.quandl.com/learn/working-with-quandl-and-r
http://www.quandl.com/learn/working-with-quandl-and-r
 +
 +
R Markdown: http://escholarship.org/uc/item/90b2f5xh
http://blogs.helsinki.fi/bioinformatics-viikki/documentation/getting-started-with-r-programming/helpful-links-to-get-started-with-r-programming/
http://blogs.helsinki.fi/bioinformatics-viikki/documentation/getting-started-with-r-programming/helpful-links-to-get-started-with-r-programming/

Current revision

Notes on R: http://www.r-bloggers.com/courseras-free-r-courses-are-running-again-soon/?utm_source=twitterfeed&utm_medium=twitter&utm_campaign=Feed%3A+RBloggers+%28R+bloggers%29

Google R style guide: http://google-styleguide.googlecode.com/svn/trunk/Rguide.xml

http://www.r-project.org/

http://tryr.codeschool.com/

Learn data analysis for free: http://www.datamind.org/#/

How to install an R package: http://math.usask.ca/~longhai/software/installrpkg.html

http://michigancomputes.wordpress.com/2013/08/20/learning-statistics-with-r-part-i/

R FAQ: http://cran.uib.no/doc/FAQ/R-FAQ.html

R for Windows FAQ: http://cran.uib.no/bin/windows/base/rw-FAQ.html

http://r4stats.com/

http://en.wikibooks.org/wiki/R_Programming/

R inferno: http://www.burns-stat.com/pages/Tutor/R_inferno.pdf

R reference card: http://cran.r-project.org/doc/contrib/refcard.pdf

Quick-R: http://www.statmethods.net/index.html

Contents

Tutorials and guides

R language fundamentals: http://www3.nd.edu/~steve/Rcourse/Lecture1v2.pdf

Introduction to R data types: http://www.nealgroothuis.name/introduction-to-data-types-and-objects-in-r/

http://blog.revolutionanalytics.com/2012/12/coursera-videos.html?utm_content=bufferd2a9a&utm_source=buffer&utm_medium=twitter&utm_campaign=Buffer

http://folk.ntnu.no/eiriksko/IntroR/R-intro.pdf

The R Guide:http://cran.r-project.org/doc/contrib/Owen-TheRGuide.pdf

http://bitesizebio.com/articles/an-easy-way-to-start-using-r-in-your-research-introduction/

http://www.cyclismo.org/tutorial/R/

http://cran.r-project.org/manuals.html

http://www.statmethods.net/

http://journal.r-project.org/

http://www.r-tutor.com/r-introduction

http://bioinformaticssoftwareandtools.co.in/rperl.php

http://ropensci.org/

http://www.quandl.com/learn/working-with-quandl-and-r

R Markdown: http://escholarship.org/uc/item/90b2f5xh

http://blogs.helsinki.fi/bioinformatics-viikki/documentation/getting-started-with-r-programming/helpful-links-to-get-started-with-r-programming/

http://www.r-bloggers.com/google-developers-r-programming-video-lectures/

Q & A

http://stackoverflow.com/questions/6583265/what-does-s3-methods-mean-in-r

Software

http://www.rstudio.com

http://www.rstudio.com/ide/docs/authoring/using_markdown

Packages/modules:

Shiny: http://johnomics.co.uk/2013/03/27/shiny-genomes/

Knitr: http://yihui.name/knitr/

R packages

http://en.wikipedia.org/wiki/Sweave


R programs

https://gist.github.com/leipzig/1637248

Interfacing

http://rpy.sourceforge.net/rpy2.html

rOpenScience: http://ropensci.org/

http://www.r-bloggers.com/step-by-step-to-build-my-first-r-hadoop-system/

Books

http://www.academia.dk/BiologiskAntropologi/Epidemiologi/PDF/Introductory_Statistics_with_R__2nd_ed.pdf

Software for Data Analysis: Programming with R: http://www.amazon.com/dp/0387759352

http://www.amazon.com/Programming-Bioinformatics-Chapman-Computer-Analysis/dp/1420063677

http://www.amazon.com/Beginners-Guide-Use-Alain-Zuur/dp/0387938362/ref=sr_1_1?ie=UTF8&qid=1376611107&sr=8-1&keywords=R+beginners+guide


Introducing Monte Carlo Methods with R: http://www.springer.com/statistics/computational+statistics/book/978-1-4419-1575-7

http://www.amazon.com/Introducing-Monte-Carlo-Methods-Use/dp/1441915753/

Dynamic Documents with R and knitr (Chapman & Hall/CRC The R Series): http://www.amazon.com/Dynamic-Documents-knitr-Chapman-Series/dp/1482203537/ref=pd_luc_mrairnr_04_03_t_lh?ie=UTF8&psc=1


Data Manipulation with R: http://www.springer.com/statistics/computational+statistics/book/978-0-387-74730-9

Bioconductor Case studies: http://www.springer.com/statistics/life+sciences%2C+medicine+%26+health/book/978-0-387-77239-4


Use R! book series: http://www.springer.com/series/6991

CRCP Press - The R Series: http://www.crcpress.com/browse/series/crctherser


Subsetting

http://www.ats.ucla.edu/stat/r/faq/subset_R.htm

Data frames

http://www.r-tutor.com/r-introduction/data-frame

http://www.talkstats.com/showthread.php/26430-Means-each-column-in-dataframe

Create empty data frame: http://stackoverflow.com/questions/12613909/how-to-create-empty-data-frame-with-column-names-specified-in-r


Column names of data frames: http://blog.earlh.com/index.php/2009/06/column-names-of-r-data-frames/

Debugging

http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/debug.shtml

http://stat.ethz.ch/R-manual/R-devel/library/base/html/browser.html

http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/


Browser() function: Allows single-stepping through a function, examining and changing objects along the way.


Debug() function:

  • Marks a function for debugging, so that browser() will be called when the function is executed.


Operators

http://csgillespie.wordpress.com/2010/11/16/assignment-operators-in-r-vs/


Useful functions

http://www.statmethods.net/management/functions.html

tapply: http://www.r-bloggers.com/r-function-of-the-day-tapply/

http://www.r-tutor.com/elementary-statistics/numerical-measures/mean

A brief introduction to apply: http://nsaunders.wordpress.com/2010/08/20/a-brief-introduction-to-apply-in-r/

Data types

http://www.statmethods.net/input/datatypes.html


R strings

http://stat.ethz.ch/R-manual/R-devel/library/base/html/paste.html

Control structures

If-else: http://cran.r-project.org/doc/manuals/R-lang.html#if

http://www.dummies.com/how-to/content/how-to-use-if133else-statements-in-r.html

For loops:

http://faculty.washington.edu/kenrice/sisg/SISG-08-05.pdf

Syntax

Semicolons:

Statements can be separated by semicolons or new lines

http://cran.r-project.org/doc/manuals/r-devel/R-lang.html

A semicolon always indicates the end of a statement, a new line *may* indicate the end of a statement.

Debugging

http://stackoverflow.com/questions/4442518/general-suggestions-for-debugging-r#5156351

http://rfunction.com/archives/2562

Functions

http://www.stat.berkeley.edu/~statcur/Workshop2/Presentations/functions.pdf


Scripts

How to source a script in R: http://www.dummies.com/how-to/content/how-to-source-a-script-in-r.html

When sourcing a script, output is only shown if explicitly printed.


http://www.statmethods.net/interface/io.html

RStudio

http://www.bytemining.com/2011/03/my-first-few-days-with-rstudio/


"Run" vs "source" script:

The "run" button only executes a single line of code.

http://www.rstudio.com/ide/docs/using/source

http://support.rstudio.org/help/discussions/questions/178-changes-to-run-and-source-commands

http://support.rstudio.org/help/discussions/problems/730-changes-to-run-from-source-behavior

RStudio docs: http://www.rstudio.com/ide/docs/?version=0.97.551&mode=desktop


Useful commands

http://www.personality-project.org/r/r.commands.html

Clear workspace:

 rm(list=ls())

ggplot2

http://www.statmethods.net/advgraphs/ggplot2.html

Personal tools