R/list1.R

Defines functions list1

Documented in list1

#' Select list one
#'
#' @param x list
#'
#' @return element in list 1
#' @export
#'
#' @examples
#' x = list(mtcars)
#' x  |> list1()
list1 <- function(x){
    x[[1]]
}

Try the do package in your browser

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

do documentation built on Aug. 3, 2021, 5:06 p.m.