Lecture 2.2 - Basic Graphics with ggplot2

Framet stata les have ending dta datadta

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Reading SPSS and STATA files in R requires the package foreign in R, library(foreign) SPSS files have ending .sav data.spss= read.spss("http://www.ats.ucla.edu/stat/data/hsb2.sav", to.data.frame=T) Stata files have ending .dta data.dta = read.dta("http://www.ats.ucla.edu/stat/data/hsb2.dta") Dai-Trang Le Lecture 2.2 - Basic Graphics with ggplot2 Graphics with ggplot2 (25 minutes) Group Discussion (15 minutes) Q and A (10 minutes) Writing Loading Data Importing data from other packages: SPSS ad STATA Reading SPSS and STATA files in R requires the package foreign in R, library(foreign) SPSS files have ending .sav data.spss= read.spss("http://www.ats.ucla.edu/stat/data/hsb2.sav", to.data.frame=T) Stata files have ending .dta data.dta = read.dta("http://www.ats.ucla.edu/stat/data/hsb2.dta") Dai-Trang Le Lecture 2....
View Full Document

Ask a homework question - tutors are online