DC Intermediate R - Conditionals and Control Flow

Jmnote (토론 | 기여)님의 2019년 4월 6일 (토) 02:27 판 (→‎Equality)
# DC Intermediate R
DC Intermediate R - Conditionals and Control Flow
DC Intermediate R - Loops
DC Intermediate R - Functions
DC Intermediate R - The apply family
DC Intermediate R - Utilities

1 Equality

# Comparison of logicals
TRUE == FALSE

# Comparison of numerics
-6 * 14 != 17 - 101

# Comparison of character strings
"useR" == "user"

# Compare a logical with a numeric
TRUE == 1

2 Greater and less than

3 Compare vectors

4 Compare matrices

5 Logical Operators

6 & and |

7 & and | (2)

8 Reverse the result: !

9 Blend it all together

10 Conditional Statements

11 The if statement

12 Add an else

13 Customize further: else if

14 Else if 2.0

15 Take control!

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