난 R의 =과 <- 이 동일한 줄 알았는데.. =에서는 최상위 레벨에서만 사용가능하다!!
http://stat.ethz.ch/R-manual/R-patched/library/base/html/assignOps.html
The operators <- and = assign into the environment in which they are evaluated. The operator <- can be used anywhere, whereas the operator = is only allowed at the top level (e.g., in the complete expression typed at the command prompt) or as one of the subexpressions in a braced list of expressions.
'R' 카테고리의 다른 글
| [R] iterator, foreach 패키지 설치 및 사용 (0) | 2015.07.24 |
|---|---|
| [R] list를 data.frame의 column으로 추가하는 예제 (0) | 2015.07.16 |
| [R ] = 과 <- 의 차이 (0) | 2015.07.16 |
| [R] 특정 값으로 채우는 list 생성하기 (0) | 2015.07.16 |
| [R] Mariadb 연동 및 이슈 (0) | 2015.07.14 |
| [R] insert into .. on duplicate key update.. 사용하기 (0) | 2015.07.14 |



댓글을 달아 주세요