Basisdatatypen

Introductie tot R voor Financiën

Lore Dirick

Manager of Data Science Curriculum at Flatiron School

Numeric

42.5
42.5
5
5
5L
5
Introductie tot R voor Financiën

Character

"Hello world"
"Hello world"
"forty"
"forty"
"5"
"5"
Introductie tot R voor Financiën

Logical

TRUE
TRUE
FALSE
FALSE
true
Error: object 'true' not found
NA
NA
Introductie tot R voor Financiën

Variabelen en datatypen

my_answer <- TRUE

my_answer
TRUE
food <- "carrots"

food
"carrots"
Introductie tot R voor Financiën

class()

my_answer <- TRUE

class(my_answer)
"logical"
class(5)
"numeric"
class(5L)
"integer"
Introductie tot R voor Financiën

Laten we oefenen!

Introductie tot R voor Financiën

Preparing Video For Download...