How to use the Apply function in R
Previously we showed you how to write a loop in R. Very often it's a better idea to use the apply function in R...
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 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...
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 use the str function in R
What is str? Str is a compact way to display the structure of an R object.
This allows you to use str as a...
Solved: Error: could not find function “cast”
If you've been trying to cast in R and have run into the following error:
Error: could not find function "cast"
Then here is the solution....
How to learn R programming
If you've wanted to learn R programming but didn't know where to start there is a great R packaged called Swirl that teaches you...
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: 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...
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...