Who are you? (Online people, in Chat)
Name, pronouns, group you work in
What you want to get out of the class
Favorite autumn activity
Data science fundamentals: How do you translate your scientific question to a data wrangling problem and answer it?
We ask you to follow Participation Guidelines and Code of Conduct.
In person: I will be on-campus on the * dates. Other dates, you are free to attend in the DaSL lounge.
Full info is here: https://hutchdatascience.org/Intro_to_R/index.html#class-schedule
We will focus on English <-> Programming Code for R Interpreter in this class.
Another way of putting it: How we organize ideas <-> Instructing a computer to do something.
A pre-course survey:
[1] 39
Numeric: 18, -21, 65, 1.25
Character: “ATCG”, “Whatever”, “948-293-0000”
Logical: TRUE, FALSE
To build up a computer program, we need to store our returned data type from our expression somewhere for downstream use.
Execution rule for variable assignment
Evaluate the expression to the right of =
.
Bind variable to the left of =
to the resulting value.
The variable is stored in the environment.
<-
is okay too!
x
is not equal to X
(If you’re coming from SAS)
Look, now x
can be reused downstream:
[1] 37
A function has a function name, arguments, and returns a data type.
Execution rule for functions:
Evaluate the function by its arguments, and if the arguments contain expressions, evaluate those expressions first.
The output of functions is called the returned value.
Computer = powerful + stupid
Even the smallest spelling and formatting changes will cause unexpected output and errors!
Please take our weekly check in survey: https://forms.gle/vGMcWC5hZN3AcYYW8
We will have a brief discussion before we start each class and respones will also be posted on the course website.