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

Naming conventions - R Tutorial

From the course: Descriptive Healthcare Analytics in R

Start my 1-month free trial

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…

Contents