Last chance! 50% off unlimited learning
Sale ends in
Return a character vector containing all the names which occur in an expression or call.
all.names(expr, functions = TRUE, max.names = -1L, unique = FALSE)all.vars(expr, functions = FALSE, max.names = -1L, unique = TRUE)
an expression or call from which the names are to be extracted.
a logical value indicating whether function names should be included in the result.
the maximum number of names to be returned. -1
indicates no limit (other than vector size limits).
a logical value which indicates whether duplicate names should be removed from the value.
A character vector with the extracted names.
These functions differ only in the default values for their arguments.
substitute
to replace symbols with values in an expression.
# NOT RUN {
all.names(expression(sin(x+y)))
all.names(quote(sin(x+y))) # or a call
all.vars(expression(sin(x+y)))
# }
Run the code above in your browser using DataLab