Obtain a descriptive filename for a tidycpt object
file_name(x, data_name_slug = "data")
x
: A tidycpt objectdata_name_slug
: character string that will identify the data set used in the file nameA character
string giving a unique file name.
file_name()
generates a random, unique string indicating the algorithm and fitness()
for a tidycpt object.
# Generate a unique name for the file DataCPSim |> segment(method = "pelt") |> file_name()