Description
The PathGenerator function 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. |
data.sequence.column |
Optional Argument. |
Value
Function returns an object of class "td_path_generator_mle" which is
a named list containing object of class "tbl_teradata".
Named list member can be referenced directly with the "$" operator
using the 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"
)