Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
tutorials
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rebecca Merrett
tutorials
Commits
db2ea5a1
Commit
db2ea5a1
authored
Mar 07, 2019
by
Rebecca Merrett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
549f1a8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
README.md
Getting Started/README.md
+60
-0
No files found.
Getting Started/README.md
View file @
db2ea5a1
# 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`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment