R/List.R

Defines functions List

Documented in List

## A variant of 'list' that names its elements just like
# 'data.frame' does:

List <- function(...){
    args <- list(...)
    argnames <- sapply(substitute(c(...))[-1],as.character)
    argtags <- names(args)
    if(length(argtags)){
        nz <- nzchar(argtags)
        argnames[nz] <- argtags[nz]
    }
    names(args) <- argnames
    args
}

Try the memisc package in your browser

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

memisc documentation built on March 31, 2023, 7:29 p.m.