Learn R Programming

reproducible (version 1.2.16)

basename2: A version of base::basename that is NULL resistant

Description

A version of base::basename that is NULL resistant

Usage

basename2(x)

Value

NULL if x is NULL, otherwise, as basename.

Same as base::basename()

Arguments

x

A character vector of paths