Blog Archives

How to perform PCA on R

January 1, 2017
By
How to perform PCA on R

This is a practical tutorial on performing PCA on R. If you would like to understand how PCA works, please see my plain English explainer here. Reminder: Principal Component Analysis (PCA) is a method used to reduce the number of variables in a dataset. We are using R’s USArrests dataset, a dataset from 1973 showing,

Read more »

Introducing Statwing

April 27, 2014
By
Introducing Statwing

Recently, Greg Laughlin, the founder of a new statistical software called Statwing, let me try his product for free. I happen to like free things very much (the college student is strong within me) so I gave it a try. I mostly like how easy it is to use: For instance, to relate two attributes

Read more »

Daily Tallies on R

November 14, 2013
By
Daily Tallies on R

Say you have a dataset, where each row has a date or time, and something is recorded for that date and time. If each row is a unique date - great! If not, you may have rows with the same date, and you have to combine records for the same date to get a daily tally.

Read more »

Using ggplot2

October 11, 2013
By
Using ggplot2

I have a standard code for ggplot2 which I use to make line graphs, scatter plots, and histograms. For lines or scatters: p

Read more »

Types of Data on R

August 26, 2013
By
Types of Data on R

There are different types of data on R. I use type here as a technical term, rather than merely a synonym of “variety”.  There are three main types of data: Numeric: ordinary numbers Character: not treated as a number, but as a word. You cannot add two characters, even if they appear to be numerical. Characters

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)