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.

 

 

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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.