"DC Intermediate R - Functions"의 두 판 사이의 차이

14번째 줄: 14번째 줄:
|}
|}


==Introduction to Functions==
* https://campus.datacamp.com/courses/intermediate-r/chapter-3-functions?ex=1
<source lang='r'>
</source>
==Function documentation==
==Function documentation==
* https://campus.datacamp.com/courses/intermediate-r/chapter-3-functions?ex=2
* https://campus.datacamp.com/courses/intermediate-r/chapter-3-functions?ex=2
<source lang='r'>
<source lang='r'>
# Consult the documentation on the mean() function
?mean
## mean                  package:base                    R Documentation
## ...
# Inspect the arguments of the mean() function
args(mean)
## function (x, ...)
## NULL
</source>
</source>
==Use a function==
==Use a function==
* https://campus.datacamp.com/courses/intermediate-r/chapter-3-functions?ex=3
* https://campus.datacamp.com/courses/intermediate-r/chapter-3-functions?ex=3

2019년 4월 6일 (토) 10:01 판

# 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 Function documentation

# Consult the documentation on the mean() function
?mean
## mean                   package:base                    R Documentation
## ...

# Inspect the arguments of the mean() function
args(mean)
## function (x, ...) 
## NULL

2 Use a function

3 Use a function (2)

4 Use a function (3)

5 Functions inside functions

6 Required, or optional?

7 Writing Functions

8 Write your own function

9 Write your own function (2)

10 Write your own function (3)

11 Function scoping

12 R passes arguments by value

13 R you functional?

14 R you functional? (2)

15 R Packages

16 Load an R Package

17 Different ways to load a package

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