The representation of an empty argument in a “call”
问题 What kind of animal is an empty argument? Consider the following piece of code. > f <- function(...) match.call() > l <- as.list(f(,3)) > l [[1]] f [[2]] [[3]] [1] 3 > typeof(l[[2]]) [1] "symbol" > identical(l[[2]],``) Error: attempt to use zero-length variable name > as.character(l[[2]]) [1] "" What sorcery is that? 回答1: If looks like l[[2]] 's value is a special object: the empty symbol. Some facts about the empty symbol (speculated based on casual experimentation). (1) The empty symbol is