SAS, R and Saturday Night Learning

RandSASBook

I’m not sure I’ll ever be an actual “Data Scientist” … but I’m making my way towards understanding what I need to know by spending my Saturday night delving into some of the basics and intricacies of R vs. SAS.

For example:

What to call your data collection?

Dataset (SAS)

Dataframe (R)

How to view five lines of data from file called “CS1” ?

(SAS)
PROC PRINT DATA=LIB1.CS1(OBS=10);
RUN;

(R)
head(cs1, n=10)

How many rows and columns in CS1? (Observations and variables)

(R)
dim(cs1)

(SAS)
DATA LIB1.CS1;
SET WORK.IMPORT;
RUN;

Small, basic, baby steps towards pulling it all together. One day I’ll look back on this post and laugh its simplicity.

 

 

Advertisements

About Helen J. Sanders

Assistant Director, Applications Development Services in the Student Collaboration Center at Temple University. Oracle database developer and enthusiast. Active in ODTUG. Serving on the Board of Directors for the Temple University Alumni Association, the Temple College of Education Alumni Association, and Vice President of the Network of Women with Careers in Technology.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: