"R 연산자"의 두 판 사이의 차이

 
(다른 사용자 한 명의 중간 판 20개는 보이지 않습니다)
2번째 줄: 2번째 줄:
;R Operators
;R Operators
;R 연산자
;R 연산자
==할당 연산자==
{{참고|R 할당 연산자}}
{| class='wikitable'
! 연산자 !! 영어 !! 한국어 !! 설명 !! 예시
|-
| <code><-</code>, <code><<-</code>, <code>=</code>
| 왼쪽 할당 연산자
|
|
|
|-
| <code>-></code>, <code>->></code>
| 오른쪽 할당 연산자
|
|
|
|}
==산술 연산자==
==산술 연산자==
{| class='wikitable'
{| class='wikitable'
7번째 줄: 26번째 줄:
|-
|-
| <code>+</code>
| <code>+</code>
|  
| [[R +|addition]]
|  
| [[R +|더하기]]
|
|
|
|
|-
|-
| <code>-</code>
| <code>-</code>
| subtraction
| 빼기
|
|
|-
| <code>*</code>
| multiplication
| 곱하기
|
|
|-
| <code>/</code>
| division
| 나누기
|
|
|-
| <code>%%</code>
| modulus
| [[R 나머지 연산자|나머지 연산자]]
|
|
|
|
|-
| <code>%/%</code>
|  integer division
| [[R 몫 연산자|몫 연산자]]
|
|
|
|
|-
|-
| <code>*</code>
| <code>^</code>
| exponent
| 거듭제곱
|
|
|-
| <code>**</code>
| exponent
| 거듭제곱
|
|
|}
 
==비교 연산자==
{| class='wikitable'
! 연산자 !! 영어 !! 한국어 !! 설명 !! 예시
|-
| <code><</code>
|  less than
|  보다 작다
|
|
|
|
|-
| <code>></code>
| greater than
| 보다 크다
|
|
|
|
|-
|-
| <code>/</code>
| <code><=</code>
| less than or equal to
| 작거다 같다
|
|
|
|
|-
| <code>>=</code>
| greater than or equal to
| 크거나 같다
|
|
|
|
|-
|-
| <code>%%</code>
| <code>==</code>
| equal to
| 같다
|
|
|
|
|-
| <code>!=</code>
|  not equal to
| 같지 않다
|
|
|
|
|}
==논리 연산자==
{| class='wikitable'
! 연산자 !! 영어 !! 한국어 !! 설명 !! 예시
|-
|-
| <code>%/%</code>
| <code>!</code>
| logical NOT
|
|
|
|-
| <code>&</code>
| element-wise logical AND
|
|
|
|
|-
| <code>&&</code>
| logical AND
|  
|  
|
|
|
|
|-
|-
| <code>^</code>
| <code><nowiki>|</nowiki></code>
| element-wise logical OR
|
|
|
|
|-
| <code><nowiki>||</nowiki></code>
| logical OR
|  
|  
|
|
49번째 줄: 150번째 줄:
|}
|}


==비교 연산자==
==논리 연산자==
==기타 연산자==
==기타 연산자==
{| class='wikitable'
{| class='wikitable'
61번째 줄: 160번째 줄:
|
|
|-
|-
| <code>%in%</code>
| <code>[[R %in%|%in%]]</code>
|
| [[R 포함 연산자|포함 연산자]]
|
|
|
|
|-
| <code>%*%</code>
|
| [[R 행렬곱 연산자|행렬곱 연산자]]
|
|
|
|
|-
|-
| <code>%*%</code>
| <code>%>%</code>
|
|
| [[R %*%|%*%]]
| [[R 파이프 연산자 %%|파이프 연산자]]
|
|
|
|
81번째 줄: 186번째 줄:
==참고==
==참고==
* https://www.tutorialspoint.com/r/r_operators.htm
* https://www.tutorialspoint.com/r/r_operators.htm
* https://www.datamentor.io/r-programming/operator/
* https://www.statmethods.net/management/operators.html


[[분류: R 연산자]]
[[분류: R 연산자]]

2021년 9월 5일 (일) 02:51 기준 최신판

1 개요[ | ]

R Operators
R 연산자

2 할당 연산자[ | ]

연산자 영어 한국어 설명 예시
<-, <<-, = 왼쪽 할당 연산자
->, ->> 오른쪽 할당 연산자

3 산술 연산자[ | ]

연산자 영어 한국어 설명 예시
+ addition 더하기
- subtraction 빼기
* multiplication 곱하기
/ division 나누기
%% modulus 나머지 연산자
%/% integer division 몫 연산자
^ exponent 거듭제곱
** exponent 거듭제곱

4 비교 연산자[ | ]

연산자 영어 한국어 설명 예시
< less than 보다 작다
> greater than 보다 크다
<= less than or equal to 작거다 같다
>= greater than or equal to 크거나 같다
== equal to 같다
!= not equal to 같지 않다

5 논리 연산자[ | ]

연산자 영어 한국어 설명 예시
! logical NOT
& element-wise logical AND
&& logical AND
| element-wise logical OR
|| logical OR

6 기타 연산자[ | ]

연산자 영어 한국어 설명 예시
: colon operator 콜론 연산자
%in% 포함 연산자
%*% 행렬곱 연산자
%>% 파이프 연산자

7 같이 보기[ | ]

8 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}