기본 데이터 타입

금융을 위한 R 입문

Lore Dirick

Manager of Data Science Curriculum at Flatiron School

숫자형

42.5
42.5
5
5
5L
5
금융을 위한 R 입문

문자형

"Hello world"
"Hello world"
"forty"
"forty"
"5"
"5"
금융을 위한 R 입문

논리형

TRUE
TRUE
FALSE
FALSE
true
Error: object 'true' not found
NA
NA
금융을 위한 R 입문

변수와 데이터 타입

my_answer <- TRUE

my_answer
TRUE
food <- "carrots"

food
"carrots"
금융을 위한 R 입문

class()

my_answer <- TRUE

class(my_answer)
"logical"
class(5)
"numeric"
class(5L)
"integer"
금융을 위한 R 입문

연습해 봅시다!

금융을 위한 R 입문

Preparing Video For Download...