Consider the following R function

Untitled Forums Statistics R programming Consider the following R function

Tagged: 

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

    Consider the following R function
    h <- function(x, y = NULL, d = 3L) {

    z <- cbind(x, d)

    if(!is.null(y))

    z <- z + y

    else

    z <- z + f

    g <- x + y / z

    if(d == 3L)

    return(g)

    g <- g + 10

    g

    }
    Which symbol in the above function is a free variable?

    #15889
    nammy
    Participant

    ANSWER: f

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