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...
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...
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 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...
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...
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...
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 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...
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...
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...