This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install R + RStudio on Ubuntu 16.04 | |
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 | |
# Ubuntu 12.04: precise | |
# Ubuntu 14.04: trusty | |
# Ubuntu 16.04: xenial | |
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/ | |
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/' | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install R + RStudio on Ubuntu 14.04 | |
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 | |
# Ubuntu 12.04: precise | |
# Ubuntu 14.04: trusty | |
# Ubuntu 16.04: xenial | |
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/ | |
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu trusty/' | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install R + RStudio on Ubuntu 12.04 | |
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 | |
# Ubuntu 12.04: precise | |
# Ubuntu 14.04: trusty | |
# Ubuntu 16.04: xenial | |
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/ | |
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu precise/' | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c = get_config() | |
c.IPKernelApp.pylab = 'inline' | |
c.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem' | |
c.NotebookApp.ip = '*' | |
c.NotebookApp.open_browser = False | |
# Your password below will be whatever you copied earlier | |
c.NotebookApp.password = u'sha1:941c93244463:0a28b4a9a472da0dc28e79351660964ab81605ae' | |
c.NotebookApp.port = 8888 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jupyter notebook --generate-config | |
mkdir certs | |
cd certs | |
sudo openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem | |
cd ~/.jupyter/ | |
nano jupyter_notebook_config.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to home directory | |
cd ~ | |
# You can change what anaconda version you want at | |
# https://repo.continuum.io/archive/ | |
curl -Ok https://repo.continuum.io/archive/Anaconda2-4.2.0-MacOSX-x86_64.sh | |
bash Anaconda2-4.2.0-MacOSX-x86_64.sh -b -p ~/anaconda | |
rm Anaconda2-4.2.0-MacOSX-x86_64.sh | |
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to home directory | |
cd ~ | |
# You can change what anaconda version you want at | |
# https://repo.continuum.io/archive/ | |
curl -Ok https://repo.continuum.io/archive/Anaconda3-4.1.1-MacOSX-x86_64.sh | |
bash Anaconda3-4.1.1-MacOSX-x86_64.sh -b -p ~/anaconda | |
rm Anaconda3-4.1.1-MacOSX-x86_64.sh | |
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to home directory | |
cd ~ | |
# You can change what anaconda version you want at | |
# https://repo.continuum.io/archive/ | |
wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh | |
bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda | |
rm Anaconda2-4.2.0-Linux-x86_64.sh | |
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to home directory | |
cd ~ | |
# You can change what anaconda version you want at | |
# https://repo.continuum.io/archive/ | |
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh | |
bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p ~/anaconda | |
rm Anaconda3-5.0.1-Linux-x86_64.sh | |
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reading in data | |
quiz_data <- fread('hw1_data.csv') | |
# Column names of the dataset | |
names(quiz_data) | |
# First two rows | |
quiz_data[c(1,2)] | |
# Number of rows in data.table |
OlderNewer