Skip to contents

This function counts the number of items, duplicated or not, in an fnames object. If there are duplicated items, it will return a warning.

Usage

n_fnames(x, ...)

Arguments

x

Object of class fnames.

...

Additional arguments.

Value

A number.

Examples

cwd_fnames <- as_fnames(c("folder/file1.txt", "folder/file2.txt", "folder/file3.txt"))
n_fnames(cwd_fnames)
#> [1] 3