R/len_all.R

Defines functions len_all

Documented in len_all

#*********************************************
#*********************************************
#' Returns the lengths of the object 'x'.
#'
#' @param x  is the input object.
#'
#' @return
#'
#' @examples
#' \dontrun{}
#'
#' @export
#' @rdname len_all
#'
len_all<-function(x){
	
	if(is.list(x)){
		lapply(x, length)
		}
	else{
		length(x)
		}
	}
arnejohannesholmin/TSD documentation built on April 14, 2024, 5:29 a.m.