STA141A: Fundamentals of Statistical Data Science
Akira Horiguchi
<- and =. (The Tidyverse Style Guide prefers <- and the Google R Style Guide is a fork of the Tidyverse’s. But most other programming languages use =.)From a task-oriented perspective, using R and most other programming languages consists of:
You can think of:
We will talk about functions later on in detail, but we’ll start making use of functions straight away. Here it is useful to review some basic concepts.
Basic data types:
235.22)1)"You are here")TRUE, FALSE)NA)Use class() to get data type of a value
You can inspect data by entering the variable name into the console, or by using str()
What is the difference between
x and y?str(x) and str(y)?NA (Not Available): signifies a missing value
Most elementary R functions have a specific argument to deal with these values
NULL: represents the absence of an object or an empty object.