R/dropList.R

Defines functions dropList

###
### R routines for the R package mixmeta (c)
#
dropList <-
function(object) {
#
################################################################################
# DROP THE LIST STRUCTURE IF THE LIST HAS ONLY ONE COMPONENT
#
  if(is.list(object) && length(object)==1L) object[[1L]] else object
}

Try the mixmeta package in your browser

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

mixmeta documentation built on Oct. 16, 2021, 5:09 p.m.