Temel veri türleri

Finans için R'ye Giriş

Lore Dirick

Manager of Data Science Curriculum at Flatiron School

Sayısal (numeric)

42.5
42.5
5
5
5L
5
Finans için R'ye Giriş

Karakter (character)

"Hello world"
"Hello world"
"forty"
"forty"
"5"
"5"
Finans için R'ye Giriş

Mantıksal (logical)

TRUE
TRUE
FALSE
FALSE
true
Error: object 'true' not found
NA
NA
Finans için R'ye Giriş

Değişkenler ve veri türleri

my_answer <- TRUE

my_answer
TRUE
food <- "carrots"

food
"carrots"
Finans için R'ye Giriş

class()

my_answer <- TRUE

class(my_answer)
"logical"
class(5)
"numeric"
class(5L)
"integer"
Finans için R'ye Giriş

Hadi pratik yapalım!

Finans için R'ye Giriş

Preparing Video For Download...