Description
The PathGenerator function (td_path_generator_mle
) takes a set of paths
and outputs the sequence and all possible subsequences, which can be input
to the function PathSummarizer (td_path_summarizer_mle
).
Usage
td_path_generator_mle ( data = NULL, seq.column = NULL, delimiter = ",", data.sequence.column = NULL, data.order.column = NULL )
Arguments
data |
Required Argument. |
data.order.column |
Optional Argument. |
seq.column |
Required Argument. |
delimiter |
Optional Argument.
Specifies the single-character delimiter that separates symbols in
the path string. |
data.sequence.column |
Optional Argument. |
Value
Function returns an object of class "td_path_generator_mle" which is a
named list containing Teradata tbl object.
Named list member can be referenced directly with the "$" operator
using name: result.
Examples
# Get the current context/connection con <- td_get_context()$connection # Load example data. loadExampleData("pathgenerator_example", "clickstream1") # Create remote tibble objects. # The table contains clickstream data, where the "path" column # contains symbols for the pages that the customer clicked clickstream1 <- tbl(con, "clickstream1") # Generate path sequences and count for the given clickstream data td_path_generator_out <- td_path_generator_mle(data = clickstream1, seq.column = "path" )