Learn R Programming

tna (version 0.4.0)

print.tna_data: Print a TNA data object

Description

Print a TNA data object

Usage

# S3 method for tna_data
print(x, data = "sequence", ...)

Value

x (invisibly).

Arguments

x

A tna_data object.

data

A character string that defines the data to be printed tibble. Accepts either "sequence" (default) for wide format sequence data, "meta", for the wide format metadata, or "long" for the long format data.

...

Arguments passed to the tibble print method.

Examples

Run this code
data_single_session <- tibble::tibble(
  action = c(
    "view", "click", "add_cart", "view", "checkout", "view", "click", "share"
   )
)
results_single <- prepare_data(data_single_session, action = "action")
print(results_single, which = "sequence")
print(results_single, which = "meta")
print(results_single, which = "long")

Run the code above in your browser using DataLab