From 202ca8efc2c9a28e4ac4be1075cb568f57ef417a Mon Sep 17 00:00:00 2001 From: Shen Lim <44327214+uigc@users.noreply.github.com> Date: Sat, 9 Feb 2019 17:55:37 -0600 Subject: [PATCH] Add inline code (#28019) * Inline code Add `arg()` inline code; Minor spelling fix * fix: removed extra frontmatter character --- guide/english/r/functions/index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/guide/english/r/functions/index.md b/guide/english/r/functions/index.md index 726a35bfd7..36ed93a7ad 100644 --- a/guide/english/r/functions/index.md +++ b/guide/english/r/functions/index.md @@ -6,7 +6,7 @@ A function allows you to define a reusable block of code that can be executed ma Functions can be named and called repeatedly or can be run anonymously in place (similar to lambda functions in python). -Developing full understanding of R functions requires understanding of environments. +Developing a full understanding of R functions requires understanding of environments. Environments are simply a way to manage objects. An example of environments in action is that you can use a redundant variable name within a function, that won't be affected if the larger runtime already has the same variable. Additionally, if a function calls a variable which is not defined within the function, it will check the higher level environment for that variable. @@ -169,15 +169,15 @@ its factorial with the `factorial()`. [1] 6 ``` - If you’re not sure which names to use with a function, you can look up the function’s -arguments with args. +arguments with `args()`. For example: ```r > args(round) [1] function(x, digits=0) ``` -## Resources - - * [Official Docs](https://cran.r-project.org/manuals.html) - * [Quick-R](https://www.statmethods.net/management/functions.html) - * [Advanced R: Functions](http://adv-r.had.co.nz/Functions.html) +## Additional Resources + - [Official Docs](https://cran.r-project.org/manuals.html) + - [Quick-R](https://www.statmethods.net/management/functions.html) + - [Advanced R: Functions](http://adv-r.had.co.nz/Functions.html) + - [CRAN](https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Functions)