Home > Teaching > Tutorials > R

Dataset Download Instructions

To import a dataset from this website into R, use the function read.delim, like follows:

Cacen <- read.delim("http://www.stat.ucla.edu/~david/Cacen.txt", header=T)

Make adjustments to the URL as well as the variable name above to import other data. If there is no file header (ie, column names in the first row), remove the comma and header=T from above.


Cacen ::: lab 1
Bumpus ::: lab 2
do data entry for lab 3
Clouds ::: lab 4
no data for lab 5
data for practice ::: lab 8 go through the link and copy/paste code into R