From the course: Descriptive Healthcare Analytics in R
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Naming conventions - R Tutorial
From the course: Descriptive Healthcare Analytics in R
Naming conventions
- First I'm going to describe data set naming conventions because each time you make a new data set, you don't want to lose track of what you were doing. I will also describe how you should split up code files and I'll give you some naming conventions for your code. As I said, first we'll talk about data set naming conventions, I start each data set with a short character prefix like BRFSS. You don't want a long one or you'll go crazy typing it. And you don't want one with numbers because that gets confusing, I make the first data set I read in have underscore a after it. And each time I remake the data set, I increment the letter so a to b, b to c and c to d. Why do I do that, well, well let's say you make a variable in c and later you use that variable to try make a new variable in d. And you realize that the c variable is messed up. I can roll back and try to figure this out. If the native variable that the variable c is based on is messed up in a then it means I read it in wrong…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Reading in BRFSS XPT data6m 57s
-
(Locked)
Naming conventions5m 38s
-
(Locked)
Keeping native variables5m 15s
-
(Locked)
Applying the first exclusion6m 3s
-
(Locked)
Applying the rest of the exclusions4m 57s
-
(Locked)
Operations in code3m 52s
-
(Locked)
Making a data reduction diagram4m 35s
-
(Locked)
Generating exposure4m 43s
-
(Locked)
Generating outcome variables3m 32s
-
-
-
-
-