How are free variables in R functions resolved?

Untitled Forums Statistics R programming How are free variables in R functions resolved?

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15878
    nammy
    Participant

    How are free variables in R functions resolved?

    1. The values of free variables are searched for in the working directory
    2. The values of free variables are searched for in the environment in which the function was defined
    3. The values of free variables are searched for in the environment in which the function was called
    4. The values of free variables are searched for in the global environment
    #15879
    nammy
    Participant

    Answer:-2
    The values of free variables are searched for in the environment in which the function was defined

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.