curriculum_graph_from_csv {CurricularAnalytics} | R Documentation |
Create Curriculum From CSV File
Description
Generates a curriculum graph from a csv file.
Usage
curriculum_graph_from_csv(filepath)
Arguments
filepath |
A csv file path with a table where each row is a course and the columns are as follows:
|
Value
A list that contains the following:
node_list |
A dataframe of course nodes containing their id, term, blocking factor (bf), delay factor (df), centrality (cf), and cruciality (sc) |
edge_list |
A dataframe with two columns 'from' and 'to' specifying directed edges starting at 'from' nodes directed towards 'to' nodes. |
network |
Igraph network object representing the curriculum graph |
sc_total |
Total structural complexity of the curriculum graph |
bf_total |
Total blocking factor of the curriculum graph |
df_total |
Total delay factor of the curriculum graph |
Examples
# Have filepath point to a csv of the following form
#id label term requisites
#1 MATH 100 1
#2 DATA 101 1
#3 MATH 101 2 1
#4 MATH 221 2 3
#5 STAT 230 3 3;2
filepath <-
system.file("extdata", "Example-Curriculum.csv", package = "CurricularAnalytics")
C <- curriculum_graph_from_csv(filepath)
plot_curriculum_graph(C)