https://github.com/weitingwlin/r-primers
A well-cataloged scripts (templates), for starting a project with R quickly.
https://github.com/weitingwlin/r-primers
Last synced: 4 months ago
JSON representation
A well-cataloged scripts (templates), for starting a project with R quickly.
- Host: GitHub
- URL: https://github.com/weitingwlin/r-primers
- Owner: weitingwlin
- Created: 2016-07-15T16:59:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-07T22:06:14.000Z (over 7 years ago)
- Last Synced: 2024-08-13T07:11:33.885Z (8 months ago)
- Language: R
- Size: 1.73 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
- jimsghstars - weitingwlin/r-primers - A well-cataloged scripts (templates), for starting a project with R quickly. (R)
README
# R-Primers
The goal of this project is to create a well-cataloged scripts (templates), so users can start a project with R quickly even when we are not (currently) familiar with R. The [Basic utility](https://github.com/weitingwlin/r-primers/tree/master/Documents#catalog-of-basic-utilities) would provide templates as modules, for small tasks. The [Task-Based Primers](https://github.com/weitingwlin/r-primers/tree/master/Documents#catalog-of-task-based-projects) would provide templates to perform certain tasks. With the **Basic utility** as knowledge base, we try to find the shortest and most painless path toward "doing something in R".
## How to use?
If you have R (and Rstudio) installed and have used it before, you can maybe find what you need in the **task-based primers**. Or play around **Basic utility** to refresh.
If you are totally new, see **Before coding** below and start with installing R.
### Before coding: install, get it all set
#### Step 1: Install [R](https://cran.rstudio.com/index.html)#### Step 2: Install [RStudio](https://www.rstudio.com/home/)
Rstudio makes R much easier to use, and all the examples in this repo were done with Rstudio. (Actually I don't know how to work with the naked R, so...)#### Step 3: Learn how it works
* Learn how to [work in Rstudio](https://github.com/weitingwlin/r-primers/blob/master/Documents/Working_with_Rstudio.md), tell R to do somthing for you with **commands**.
* Learn how to [working with scripts and .R files](https://github.com/weitingwlin/r-primers/blob/master/Documents/Working_with_scripts.md), so you can keep track of your commands, and actually start **coding**.
#### Step 4: Prepare a project folder
* Prepare a folder (anywhere on your computer) for your project
* [Set up working environment](Documents/Set_up_working.md)#### Step 5: Climb on!
With these skills you should be able to play through the examples in [Basic utility](https://github.com/weitingwlin/r-primers/tree/master/Documents#catalog-of-basic-utilities), and learn R at your own pace.Or you might try a **top-down method**, start working on a [Task-Based Primers](https://github.com/weitingwlin/r-primers/tree/master/Documents#catalog-of-task-based-projects), and click-learn everything you need on the way.
## [Basic utility](https://github.com/weitingwlin/r-primers/tree/master/Documents#catalog-of-basic-utilities)
## [Task-Based Primers](https://github.com/weitingwlin/r-primers/tree/master/Documents#catalog-of-task-based-projects)
### [PCA](https://github.com/weitingwlin/r-primers/blob/master/Documents/PCA.md)
### [Filter](https://github.com/weitingwlin/r-primers/blob/master/Documents/Filter.md)## Resources & references
* [R Tutorial](http://www.r-tutor.com/)
* [swirl](http://swirlstats.com/students.html) a package for tutorial in R.
* [Quick-R](http://www.statmethods.net/)#### Matlab user adapter
* [R for matlab users](http://mathesaurus.sourceforge.net/octave-r.html)