jsonSeqFreq: Sequence frequency json

Description Usage Arguments Author(s) Examples

Description

Creates a json file of sequence frequencies. This json will work with D3 Sunburst

Creates a json file of sequence frequencies. This json will work with D3 Sunburst

Usage

1
2
3

Arguments

seq

A vector of sequences. Each item in sequence must be seperated by a -. For example item1-item2-item3

freq

A vector of frequencies for the sequences

seq

A vector of sequences. Each item in sequence must be seperated by a -. For example item1-item2-item3

freq

A vector of frequencies for the sequences

Author(s)

James Thomson

James Thomson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data<-read.csv(file="https://gist.githubusercontent.com/kerryrodden/7090426/raw/8fce22c9e21711c757ee8a0df7dba5a42dea0d9c/visit-sequences.csv",
header = FALSE,  stringsAsFactors = FALSE
)
seq<-data[-13632,1]
freq<-data[-13632,2]
jsonSeqFreq(seq, freq)
data<-read.csv(file="https://gist.githubusercontent.com/kerryrodden/7090426/raw/8fce22c9e21711c757ee8a0df7dba5a42dea0d9c/visit-sequences.csv",
header = FALSE,  stringsAsFactors = FALSE
)
seq<-data[-13632,1]
freq<-data[-13632,2]
jsonSeqFreq(seq, freq)

jamesthomson/R2D3 documentation built on May 18, 2019, 11:21 a.m.