Skip to contents

Drops last entry in the list x if this entry is character

Usage

droplast(x)

Arguments

x

the list

Value

list with omitted last element

Examples

a <- list(x = 5, y = "last")
cbr:::droplast(a)
#> $x
#> [1] 5
#>