R Coding Cheatsheet
R Coding Cheatsheet
Learn R: Introduction
NA Data Type in R
Mathematical Operations in R
# Results in "2"
10 / 5
R Data Types
In R, and in programming in general, data types are the # var1 has the number data type
classifications that we give to different kinds of information
pieces.
var1 <- 3
Specifically, R provides the following basic data types:
character, numeric, integer, logical, and complex. Each # var2 has the character data type
data type is used to represent some type of info -
var2 <- "happiness"
numbers, strings, boolean values, etc.
R Conditional Statements
R Comments
Print Share