CSI-MTH-190
I will use underscores _, not spaces to name your files. You can also use -
Avoid special symbols.
Called snake case.
my_file.qmd
my file!.qmd
syntax is how the code looks
variables should be in snake case and lower case
variables should be nouns
functions should be verbs (functions is an optional topic)
names should be meaningful and concise.
Don’t reuse built in R names (TRUE, mean, c, n, etc. )
The R community likes to use the <- for variable assignment. However in most other languages = is used, and it works in R.
I will generally use = in this course. For us they are effectly the same.
Consider spacing and commas like in English writing.
More space for readability is ok. Don’t over do it.
In general |> and + should end lines.
We will discuss these operators more later.