R/fnames.R
n_fnames.Rd
This function counts the number of items, duplicated or not, in an fnames object. If there are duplicated items, it will return a warning.
fnames
n_fnames(x, ...)
Object of class fnames.
Additional arguments.
A number.
cwd_fnames <- as_fnames(c("folder/file1.txt", "folder/file2.txt", "folder/file3.txt")) n_fnames(cwd_fnames) #> [1] 3