Learn R Programming

clickstream (version 1.3.0)

print.MarkovChainSummary: Prints the Summary of a MarkovChain Object

Description

Prints the summary of a MarkovChain object.

Usage

# S3 method for MarkovChainSummary
print(x, ...)

Arguments

x

A MarkovChainSummary object generated with the function summary

...

Ignored parameters.

See Also

summary

Examples

Run this code
# NOT RUN {
clickstreams <- c("User1,h,c,c,p,c,h,c,p,p,c,p,p,o",
               "User2,i,c,i,c,c,c,d",
               "User3,h,i,c,i,c,p,c,c,p,c,c,i,d",
               "User4,c,c,p,c,d",
               "User5,h,c,c,p,p,c,p,p,p,i,p,o",
               "User6,i,h,c,c,p,p,c,p,c,d")
csf <- tempfile()
writeLines(clickstreams, csf)
cls <- readClickstreams(csf, header = TRUE)
mc <- fitMarkovChain(cls)
print(summary(mc))

# }

Run the code above in your browser using DataLab