User:Jarle Pahr/R: Difference between revisions
Jarle Pahr (talk | contribs) (→Books) |
Jarle Pahr (talk | contribs) No edit summary |
||
(44 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Notes on R: | 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://www.r-project.org/ | ||
http://tryr.codeschool.com/ | |||
Learn data analysis for free: | Learn data analysis for free: | ||
http://www.datamind.org/#/ | 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 FAQ: http://cran.uib.no/doc/FAQ/R-FAQ.html | ||
Line 14: | Line 23: | ||
http://en.wikibooks.org/wiki/R_Programming/ | 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 | |||
=Tutorials and guides= | =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 | http://folk.ntnu.no/eiriksko/IntroR/R-intro.pdf | ||
Line 38: | 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/ | ||
Line 79: | Line 101: | ||
http://www.academia.dk/BiologiskAntropologi/Epidemiologi/PDF/Introductory_Statistics_with_R__2nd_ed.pdf | 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/Programming-Bioinformatics-Chapman-Computer-Analysis/dp/1420063677 | ||
Line 90: | Line 115: | ||
http://www.amazon.com/Introducing-Monte-Carlo-Methods-Use/dp/1441915753/ | 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 | 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 | 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 |
Latest revision as of 07:05, 1 March 2014
Google R style guide: http://google-styleguide.googlecode.com/svn/trunk/Rguide.xml
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://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
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://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.r-tutor.com/r-introduction
http://bioinformaticssoftwareandtools.co.in/rperl.php
http://www.quandl.com/learn/working-with-quandl-and-r
R Markdown: http://escholarship.org/uc/item/90b2f5xh
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/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
Software for Data Analysis: Programming with R: http://www.amazon.com/dp/0387759352
http://www.amazon.com/Programming-Bioinformatics-Chapman-Computer-Analysis/dp/1420063677
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())