Skip to contents

This function coerces a character vector into an object of class fnames.

Usage

as_fnames(x, remove_duplicates = TRUE, sort = TRUE, ...)

Arguments

x

A character vector (or a freqlist object!)

remove_duplicates

Boolean. Whether duplicates should be removed.

sort

Boolean. Whether the output should be sorted.

...

Additional arguments.

Value

An object of class fnames.

Examples

as_fnames("path/to/my/corpus_file")
#> Filename collection of length 1
#>                 filename
#>   ----------------------
#> 1 path/to/my/corpus_file