A.2 Token 구분자
Token이란 의미의 최소 단위(minimal chunk)를 의미한다. 다음의 문자들은 token에 쓸 수 없는 문자들이며, 이런 문자들이 있으면 앞뒤가 구분된 token들로 본다.
white spaces(space, tab, vertical tab, line feed, carriage return)
# comment
: from:to
:: package::function
; line separator
, argument separator
= or <- or -> assignment operator
= argument name=value pairing
~ formula constructor (See chapter 10 to see how to use)
$ container$element
() binding/evaluation order separator
{} block of statements
[] index container
[[]] inner object
|> pipe operator. since R 4.1
식(expression)은 evaluation(평가, 값 계산)의 대상이고, 문장(statement)은 execution(실행)의 대상이다.
하나의 식(expression)이 하나의 문장(statement)이 될 수도 있다. 문장(Statement)는 Enter 문자로 끝나거나 세미콜론(;)으로 끝나거나, {} 로 구분된다.