readClickstreams | R Documentation |
Reads a list of clickstream from a csv-file. Note that non-alphanumeric characters will be removed.
readClickstreams(file, sep = ",", header = FALSE)
file |
The name of the file which the clickstreams are to be read from.
Each line of the file appears as one click stream. If it does not contain an
absolute path, the file name is relative to the current working directory,
|
sep |
The character separating clicks (default is “,”). |
header |
A logical flag indicating whether the first entry of each line in the file is the name of the clickstream user. |
A list of clickstreams. Each element is a vector of characters representing the clicks. The name of each list element is either the header of a clickstream file or a unique number.
Michael Scholz michael.scholz@th-deg.de
print.Clickstreams
, randomClickstreams
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)
unlink(csf)
print(cls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.