Learn R Programming

discourseGT (version 1.0.0)

tabulate_edges: Process raw order lists from two column format to edge and weight lists

Description

Takes raw input that is in a 2 column format/question-and-response format and generates an appropriate edge and weight lists in a combined .csv file. The weights in this function are determined by the number of occurrences a specific edge, directed or undirected, has occurred in the graph

Usage

tabulate_edges(input, iscsvfile = TRUE)

Arguments

input

Input in question-and-response format. Must be a data.frame or file name of a .csv

iscsvfile

Sets if the input is a csv file or a R data frame object

Value

Saves the weight and edge lists as a data.frame object or a .csv file to disk.

Examples

Run this code
# NOT RUN {
df <- sampleData1
tabData <- tabulate_edges(df, iscsvfile = FALSE)

# }

Run the code above in your browser using DataLab