README.md 2.09 KB
Newer Older
Rebecca Merrett committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# Getting Started with Python and R for Data Science

### Dataset 
* [height.csv](https://github.com/RebeccaMerrett/data_science_beginner_lm/blob/master/height.csv)
 
### Example Python and R Scripts
* [lm_model.py](https://github.com/RebeccaMerrett/data_science_beginner_lm/blob/master/lm_model.py)
* [lm_model.txt](https://github.com/RebeccaMerrett/data_science_beginner_lm/blob/master/lm_model.dms) 
 
### Programs/Software
* [python.org/downloads](https://www.python.org/downloads/)
* [bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py)
* [cran.r-project.org/bin/windows/base](https://cran.r-project.org/bin/windows/base/)
* [rstudio.com](https://www.rstudio.com)
* [gitforwindows.org](http://gitforwindows.org)
 
### Commands

#### For adding Python to PATH on Windows:
* `echo 'export PATH=$PATH:/c/Python36' > .bashrc`

#### For adding Homebrew to PATH on a Mac:
* `echo 'export PATH="/usr/local/bin:$PATH"' > .bashrc`
* `sudo chown $USER /usr/local`
 
#### For adding Python to PATH on Mac:
* `echo 'export PATH="/usr/local/share/python:$PATH"' > .bashrc`
 
#### For Python Mac installation:
* `xcode-select --install`
* `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
* `brew install Python`
* `which pip`
* `pip -V`
 
#### For R Mac installation:
* `brew tap homebrew/science`
* `brew install r`

#### For Python Linux installation:
* `sudo apt-get install Python 3.6`
* `sudo apt-get install python-setuptools`
* `sudo easy_install pip`
 
#### For R Linux installation:
* `sudo apt-get -y install r-base`
 
#### Python and R packages:
* `py -m pip install <package>` (first download `get-pip.py` and run `python get-pip.py`)
* `install.packages("<package>")`

#### Git:
(Make sure you are in the directory where your scripts are stored.)
* `git config --global user.email "<your email here>"`
* `git config --global user.name "<your GitHub user name here>"`
* `git init`
* `git add .`
* `git commit -m "<message here to note the changes/submission made>"`
* `git remote add origin <URL to the main page of your Github repository>`
* `git push -u origin master`