Join Jordan Bakerman for an in-depth discussion in this video Demo: Creating and viewing the data table, part of SAS Programming for R Users, Part 1.
- [Instructor] Open up the SP4R02d01 file…to read in a few new datasets manually.…So, here I'm creating a dataset called example_data.…I'm saving it in the SP4R library,…so it will be saved permanently.…In the input statement, I have four variables.…First name which is character valued,…so I have a dollar sign.…Last name which is also character valued,…so I have another dollar sign.…And, two numeric valued variables, age and height.…
Then, I'll specify the data lines…and go ahead and type in all my data.…So, here I have my name, Jordan Bakerman,…27 years old, 68 inches tall,…and a few of my friends as well.…Remember your semicolon and your run statement…to finish up your data step.…Now, you noticed here, the last observation has more…than eight bytes.…JeanClaude has actually ten characters,…so I need to use a length statement…to change the number of bytes for the variable.…
So, in the length statement,…I'll specify first name and last name…and I'll just say, hey, let them be up to 25 characters.…So again, I don't need to know the value…
Note: You can visit the SAS site to obtain a copy of the software, and use the company's online data sets to do the course exercises.
- SAS University Edition
- Working in SAS Studio
- Using tasks and snippets in SAS Studio
- Determining power using simulation
- SAS procedure syntax
- Creating datasets manually in the DATA step
- Importing raw data files
- Creating new variables and conditional processing
- Match-merging data sets
Skill Level Beginner
Descriptive Healthcare Analytics in Rwith Monika Wahi4h 15m Advanced
1. Introduction and Working in SAS
2. Importing and Reporting Data
3. Creating New Variables, Functions, and Data Tables
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.