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...
Learning R plot with NFL Data wins vs. yards allowed
R plot data doesn't need to be boring. Being an NFL football fan has made it a lot more interesting to create lessons on...
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,...
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: 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 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...
R Programming: Example of how to write a function in R
What is a function? A function allows you to create a program that has a set of instructions that you use repeatedly or contains...
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...
How to Import Data as CSV into R
There are a few different ways to import data into R. We will cover two ways in this post, downloading a file from the...
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...