n_fnames: Count number of items in an 'fnames' object

View source: R/fnames.R

n_fnamesR Documentation

Count number of items in an 'fnames' object

Description

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)

mclm documentation built on Oct. 3, 2022, 9:07 a.m.