From 1c272a05cdebbce4c610d828a5b781ac794a4e27 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 4 Mar 2019 18:04:18 -0600 Subject: [PATCH] Update index.md (#33151) --- guide/english/r/functions/index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guide/english/r/functions/index.md b/guide/english/r/functions/index.md index 36ed93a7ad..111c27d381 100644 --- a/guide/english/r/functions/index.md +++ b/guide/english/r/functions/index.md @@ -7,9 +7,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 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. +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, (lexical scoping)[https://en.wikipedia.org/wiki/Scope_(computer_science)#Lexical_scoping] is used when a function calls a variable not defined within the function it will check the higher level environment for that variable. ### Syntax