Skip to content

Clarification on internal variables on slide regarding function #65

@mcRoe

Description

@mcRoe

In baseR_exercises.Rmd exercise 8, people often struggle with the concept of internal variables. Maybe we can add a bit of clarification on this in the slides, through an example, such as:

**var1** = 10

test_age <- function(**var1**){
  return(**var1** * 10)
}

test_age(5)

[1] 50

Which would show both var1's are treated different

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions