Returns NULL if x is NULL, otherwise, as basename.

basename2(x)

Arguments

x

A character vector of paths

Value

Same as basename