Obtain a descriptive filename for a tidycpt object
file_name.Rd
Obtain a descriptive filename for a tidycpt object
Arguments
- x
A tidycpt object
- data_name_slug
character string that will identify the data set used in the file name
Details
file_name()
generates a random, unique string indicating the algorithm and
fitness()
for a tidycpt object.
Examples
# Generate a unique name for the file
DataCPSim |>
segment(method = "pelt") |>
file_name()
#> [1] "data_PELT_9403_b42849422cbfd7c23a6ffe77d48389f8.rda"