args(name)
name | a function or a character string specifying the name of a function. Using a character string is useful when the name of the function would not be interpreted as a name by the parser. See the Example section for more information. |
# Arguments for the function "objects" args(objects) # Returns the following: # function(name, pos = -1, envir = as.environment(pos), # all.names = FALSE, pattern) NULL # <environment: base># You must specify the argument as a character string for special names. # For example: args("[") # Returns the following: # function() NULL # <environment: R_GlobalEnv>
# Create new "objects" functions with same arguments objects.new <- args(objects) objects.new # Returns the following: # function(name, pos = -1, envir = as.environment(pos), # all.names = FALSE, pattern) NULL # <environment: base>