strip_path: Strip a dataframe containing a step into separate columns

Description Usage Arguments Value

Description

Strip a dataframe containing a step into separate columns

Usage

1
2
strip_path(data, path_col = "path", count_col = "count",
  value_cols = NULL, sep = "->")

Arguments

data

A dataframe containing the path.

path_col

Name of the column containing the path. The path should be a string of the format "step 1 -> step 2 -> step 3" .Default: "path"

count_col

Name of the column containing the number of occurences of the path. Default: "count"

value_cols

Names of the other columns to keep. Default: NULL

sep

String used to separate the different steps. Default: "->"

Value

A data.table with the columns specified in count_col, value_cols and one column per step in the path


D3partitionR documentation built on May 2, 2019, 6:36 a.m.