Lecture 2.2 - Basic Graphics with ggplot2

Xport requires package sasxport librarysasxport sas

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: 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 SAS Data set in SAS can be saved in three different formats: .csv, .xls, and .xport. Requires package SASxport library(SASxport) SAS files have ending .xport data.sas = read.xport(“sasfile.xport”) data.xls = read.xls(“xlsfile.xls”) If you have trouble reading .xport file just export it as a .csv file and use the read.csv() function 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 Saving Data Saving Data to different formats You can save a data in a number of formats, including text .txt, stata .dta, and Excel .xlsx. You will need to install or load two packages, foreign...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online