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 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...
How to read a table in R
Reading a table in R is quite straight-forward. We are going to read a table from the web and also one locally.
If you...
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...
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: 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...
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...
How to program a For Loop in R
Just apply! What does that even mean? Well, some R programmers will tell you to use the apply function (lapply or sapply) to loop....
How to run a cross table in R
Running a cross table, or cross tab, in R is useful for a number of applications for data research. In the example below, we...
How to generate random numbers and set seeds in R
Lets learn how to generate random numbers in R. There might be occasions where you'd want to draw random numbers but want to be...