I have the following function:
d <- 4
test <- function(...){
testc <- match.call(expand.dots = TRUE)$c
}
result <- test(c=d)
result
yields result = d. Normally I would expect by assigning d <- 4 that the result would be result = 4.
What am i doing wrong here?