R 에서 팩토리얼(factorial), 계승을 계산하는 법

3! = 3 * 2 * 1 = 6
R에서 계산하는 방법은 다음과 같습니다.


> factorial(3)  #3 × 2 × 1
[1] 6

> factorial(52)
[1] 8.065818e+67

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.