R 사용자용 Python
Daniel Chen
Instructor
numeric: 정수, 부동소수점 수logical: TRUE 또는 FALSE 값character: 문자열int: 정수float: 부동소수점 수bool: True 또는 False 값str: 문자열x <- 3
y = 0.5
z <- TRUE
x = 3
y = 0.5
z = True
print('R is awesome!')
"R is awesome!"
print('Python too!')
Python too!
x <- 3
class(x)
"numeric"
x = 3
type(x)
int
y = 0.5
type(y)
float
1 + 1
2
'1' + '1'
Error in "1" + "1" : non-numeric argument to binary operator
'1' * 5
Error in "1" * 5 : non-numeric argument to binary operator
'1' '1'
Error: unexpected string constant in "'1' '1'"
1 + 1
2
'1' + '1'
'11'
'1' * 5
'11111'
'1' '1'
'11'
R 사용자용 Python