R/getdots.R

## NOTE: this has problems when '...' contains quoted names that have special symbols
## for a better option see the logic in setkey

getdots = function()
{
    # return a string vector of the arguments in '...'
    # My long winded way: gsub(" ","",unlist(strsplit(deparse(substitute(list(...))),"[(,)]")))[-1]
    # Peter Dalgaard's & Brian Ripley helped out and ended up with :
    as.character(match.call(sys.function(-1), call=sys.call(-1), expand.dots=FALSE)$...)
}

Try the data.table package in your browser

Any scripts or data that you put into this service are public.

data.table documentation built on May 2, 2019, 4:57 p.m.