How to Get, Set or Change your working directory in R
If you are just starting out in R it'll be important to know how to determine your working directory or how to find the...
What is Random Sampling and How to run it in R
We will walk you through how to run random sampling in R, but first lets discuss what is random sampling and why is it...
Error: Cannot change working directory in R Studio
I had initially set it to be setwd(“Users/myname/datascience”)
make sure you have the initial / so it is this:
setwd("/Users/charliecraine/datascience")
another method is that under the Files...
How to use the quantile function in R
The quantile function in R displays sample quantiles corresponding to given probabilities. The smallest observation corresponds to a probability of 0 and the largest...
Fix: sudo: port: command not found
I'm trying to setup Python 2.7 and SciPy and hit a major roadblock. I kept getting
sudo: port: command not found
On Mac OSX, I'm...
How to merge data frames in R
You will find occasions when you'll need to merge data from two different data frames. In order to merge two datasets you are required...
Histogram in R: How to example using NFL QB data
A histogram in R is very useful to use when you want to see more detail on all of the data within your data...
Learn how to use lapply in R
The lapply function in R applies a function to elements in a list or a vector and returns the results in a list.
lapply(list,...
How to: Create column names in R / R Studio
If you want to create your own headers there is an easy way to do that. You can use the optional col.names argument to...
How to: Import NFL Data into R / R Studio – HTML import
If you want to start running some cool analysis on NFL data (or any other sport for that matter) there are a number of...